Skip to content

Instantly share code, notes, and snippets.

@Kalaivanimurugan
Created May 9, 2018 12:03
Show Gist options
  • Save Kalaivanimurugan/817bfe40cf41ec72e01556bc7d1445bb to your computer and use it in GitHub Desktop.
Save Kalaivanimurugan/817bfe40cf41ec72e01556bc7d1445bb to your computer and use it in GitHub Desktop.
Log Rotation in Rails
config.logger = Logger.new(config.paths["log"].first, 5, 25.megabytes) # Keeps the Last 5 log files which are rotated at every 25MB
config.log_level = :error #in log file the errors only wriiten.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment