生产环境下日志分天

This commit is contained in:
lizanle 2015-01-23 09:46:02 +08:00
parent 4fe8b23069
commit 79fd7ebd7a
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ RedmineApp::Application.configure do
# config.logger.level = Logger::INFO # config.logger.level = Logger::INFO
# Full error reports are disabled and caching is turned on # Full error reports are disabled and caching is turned on
config.logger = Logger.new('log/development.log', 'daily',1048576) # daily, weekly or monthly
config.action_controller.perform_caching = true config.action_controller.perform_caching = true
config.cache_store = :file_store, "#{Rails.root }/public/tmp/" config.cache_store = :file_store, "#{Rails.root }/public/tmp/"
# Enable serving of images, stylesheets, and javascripts from an asset server # Enable serving of images, stylesheets, and javascripts from an asset server