Class: ActiveSupport::BufferedLogger

Inherits:
Logger show all
Defined in:
lib/active_support/buffered_logger.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Logger

broadcast

Methods included from LoggerSilence

#silence

Methods included from Concern

#append_features, extended, #included

Methods inherited from Logger

#datetime_format, #datetime_format=, define_around_helper, #old_datetime_format, #old_datetime_format=, #old_initialize

Constructor Details

#initialize(*args) ⇒ BufferedLogger

Returns a new instance of BufferedLogger.



7
8
9
10
# File 'lib/active_support/buffered_logger.rb', line 7

def initialize(*args)
  self.class._deprecation_warning
  super
end

Class Method Details

._deprecation_warningObject



17
18
19
# File 'lib/active_support/buffered_logger.rb', line 17

def self._deprecation_warning
  ::ActiveSupport::Deprecation.warn 'ActiveSupport::BufferedLogger is deprecated! Use ActiveSupport::Logger instead.'
end

.inheritedObject



12
13
14
15
# File 'lib/active_support/buffered_logger.rb', line 12

def self.inherited(*)
  _deprecation_warning
  super
end