Created
May 9, 2018 12:03
-
-
Save Kalaivanimurugan/817bfe40cf41ec72e01556bc7d1445bb to your computer and use it in GitHub Desktop.
Log Rotation in Rails
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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