class method
self.new
Ruby on Rails 7.2.3
Since v3.0.20Signature
self.new(level = DEBUG)
No documentation comment.
Parameters
-
levelopt = DEBUG
Source
# File activesupport/lib/active_support/log_subscriber/test_helper.rb, line 60
def initialize(level = DEBUG)
@flush_count = 0
@level = level
@logged = Hash.new { |h, k| h[k] = [] }
end
Defined in activesupport/lib/active_support/log_subscriber/test_helper.rb line 60
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::LogSubscriber::TestHelper::MockLogger