Created
September 9, 2013 21:47
-
-
Save chrisyour/6501981 to your computer and use it in GitHub Desktop.
Limit the size of your development.log and test.log files in your Rails 4 and Rails 3 apps.
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
# Add this to config/environments/development.rb | |
# Limit your development log file to 5 MB | |
config.logger = Logger.new(config.paths["log"].first, 1, 5242880) # 5 megabytes |
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
# Add this to config/environments/development.rb | |
# Limit your test log file to 5 MB | |
config.logger = Logger.new(config.paths["log"].first, 1, 5242880) # 5 megabytes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment