Skip to content

Instantly share code, notes, and snippets.

@thadeu
Last active January 23, 2017 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thadeu/401c1f39e33380600bc2756a779d6fe1 to your computer and use it in GitHub Desktop.
Save thadeu/401c1f39e33380600bc2756a779d6fe1 to your computer and use it in GitHub Desktop.
πŸŽ‰ Set Limit Log File Rails

Add this to config/environments/development.rb

config.logger = Logger.new(config.paths["log"].first, 20 * 1024) # 20 megabytes

Add this to config/environments/production.rb

config.logger = Logger.new(config.paths["log"].first, 20 * 1024) # 20 megabytes

Add this to config/environments/test.rb

config.logger = Logger.new(config.paths["log"].first, 20 * 1024) # 20 megabytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment