Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save dillonhafer/b7c87c840c7b03334f9952ab82348f81 to your computer and use it in GitHub Desktop.
Save dillonhafer/b7c87c840c7b03334f9952ab82348f81 to your computer and use it in GitHub Desktop.
Keep rails log files trimmed to 2MB
# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num]
/Users/<username>/dev/<rails projects>/*/log/*.log <username>:staff 644 0 2000 * G
# Mono repos
/Users/<username>/dev/<rails projects>/*/*/log/*.log <username>:staff 644 0 2000 * G
# Deeper mono repos
/Users/<username>/dev/<rails projects>/*/*/*/log/*.log <username>:staff 644 0 2000 * G
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment