blob: 1cd0c2f79097a9ac15be1b1d23f47bd28a183031 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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
|