summaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-09-17 04:31:17 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-09-17 04:31:17 +0000
commiteb1f58f9624a22d4b5a22f1510c858fa6d5cf7cb (patch)
treec2191b4ae0d3453c2cf27020cb91b127a9b99ad1 /config/environments
parentb8ea55661631be2e7aa535fee7dc43fd3c4ca75d (diff)
downloadredmine-eb1f58f9624a22d4b5a22f1510c858fa6d5cf7cb.tar.gz
redmine-eb1f58f9624a22d4b5a22f1510c858fa6d5cf7cb.zip
Added some documentation about the Rails Logger. #6135
Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4096 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/production.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/environments/production.rb b/config/environments/production.rb
index cfd2aa0f2..ac11f5219 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -4,9 +4,14 @@
# Code is not reloaded between requests
config.cache_classes = true
+#####
+# Customize the default logger (http://ruby-doc.org/core/classes/Logger.html)
+#
# Use a different logger for distributed setups
# config.logger = SyslogLogger.new
-
+#
+# Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around.
+# config.logger = Logger.new(config.log_path, 7, 1048576)
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false