Skip to content

Instantly share code, notes, and snippets.

@dobrych
Forked from jcf/rails.conf
Created December 10, 2011 00:25
Show Gist options
  • Save dobrych/1453977 to your computer and use it in GitHub Desktop.
Save dobrych/1453977 to your computer and use it in GitHub Desktop.
NewSyslog Log Rotate on OS X
# Rotate rails logs on OS X using newsyslog
# count: how many old files to keep around, this is dev, so 0
# size: 1000 kb
# when: * - only rely on the size property
# flags: G - interpret logfilename as a shell pattern
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/Users/jcf/Code/**/log/*.log 666 0 1000 * G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment