Skip to content

Instantly share code, notes, and snippets.

@r38y
Created July 24, 2010 04:36
Show Gist options
  • Select an option

  • Save r38y/488403 to your computer and use it in GitHub Desktop.

Select an option

Save r38y/488403 to your computer and use it in GitHub Desktop.
# rotate rails logs on OS X using newsyslog
# Place this file in /etc/newsyslog.d/
# change the logfilename to match where your rails apps are
# 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]
/forge38/clients/**/**/rails/log/*.log 666 0 1000 * G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment