Skip to content

Instantly share code, notes, and snippets.

@dobrych
Forked from jcf/rails.conf
Created December 10, 2011 00:39
Show Gist options
  • Save dobrych/1454025 to your computer and use it in GitHub Desktop.
Save dobrych/1454025 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
@jcf
Copy link

jcf commented Dec 16, 2011

You'll want to make sure you specify owner and group, otherwise your log files will be owned by root.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment