1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/buffered_logger.rb

21 lines
457 B
Ruby

require 'active_support/deprecation'
require 'active_support/logger'
module ActiveSupport
class BufferedLogger < Logger
def initialize(*args)
self.class._deprecation_warning
super
end
def self.inherited(*)
_deprecation_warning
super
end
def self._deprecation_warning
::ActiveSupport::Deprecation.warn 'ActiveSupport::BufferedLogger is deprecated! Use ActiveSupport::Logger instead.'
end
end
end