aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/clean_logger.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2007-09-25 03:47:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2007-09-25 03:47:37 +0000
commit79a9c7a702f4bccb2af5c82bb9a78209b28ab1c7 (patch)
treeabdd87ec54e111b54198cb70728e224da5bc3cfb /activesupport/lib/active_support/clean_logger.rb
parent501244fee4045dd7a48b8753e9f54a060fdc743d (diff)
downloadrails-79a9c7a702f4bccb2af5c82bb9a78209b28ab1c7.tar.gz
rails-79a9c7a702f4bccb2af5c82bb9a78209b28ab1c7.tar.bz2
rails-79a9c7a702f4bccb2af5c82bb9a78209b28ab1c7.zip
Added ActiveSupport::BufferedLogger as a duck-typing alternative (albeit with no formatter) to the Ruby Logger, which provides a very nice speed bump (inspired by Ezra's buffered logger) [DHH] Changed the default logger from Ruby's own Logger with the clean_logger extensions to ActiveSupport::BufferedLogger for performance reasons [DHH]. (You can change it back with config.logger = Logger.new(/path/to/log, level).)
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7626 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/clean_logger.rb')
-rw-r--r--activesupport/lib/active_support/clean_logger.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/clean_logger.rb b/activesupport/lib/active_support/clean_logger.rb
index 95d4f07f4d..0c6de67f8d 100644
--- a/activesupport/lib/active_support/clean_logger.rb
+++ b/activesupport/lib/active_support/clean_logger.rb
@@ -11,6 +11,8 @@ require File.dirname(__FILE__) + '/core_ext/class/attribute_accessors'
# You can then specify the datetime format, for example:
#
# logger.datetime_format = "%Y-%m-%d"
+#
+# Note: This logger is deprecated in favor of ActiveSupport::BufferedLogger
class Logger
# Set to false to disable the silencer
cattr_accessor :silencer