aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/logger.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/logger.rb')
-rw-r--r--activesupport/lib/active_support/logger.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/logger.rb b/activesupport/lib/active_support/logger.rb
index 82117a64d2..6f2ab310b9 100644
--- a/activesupport/lib/active_support/logger.rb
+++ b/activesupport/lib/active_support/logger.rb
@@ -5,7 +5,15 @@ module ActiveSupport
class Logger < ::Logger
include LoggerSilence
- attr_accessor :broadcast_messages
+ # If +true+, will broadcast all messages sent to this logger to the any
+ # logger linked to this one via +broadcast+.
+ #
+ # If +false+, the logger will still forward calls to +close+, +progname=+,
+ # +formatter=+ and +level+ to any linked loggers, but no calls to +add+ or
+ # +<<+.
+ #
+ # Defaults to +true+.
+ attr_accessor :broadcast_messages # :nodoc:
# Broadcasts logs to multiple loggers.
def self.broadcast(logger) # :nodoc: