Class: ActiveSupport::LogSubscriber
- Inherits:
-
Object
- Object
- ActiveSupport::LogSubscriber
- Defined in:
- lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb
Direct Known Subclasses
RailsSemanticLogger::ActionController::LogSubscriber, RailsSemanticLogger::ActionMailer::LogSubscriber, RailsSemanticLogger::ActionView::LogSubscriber, RailsSemanticLogger::ActiveJob::LogSubscriber, RailsSemanticLogger::ActiveRecord::LogSubscriber, RailsSemanticLogger::Rack::Logger
Instance Method Summary collapse
Instance Method Details
#silenced?(event) ⇒ Boolean
7 8 9 10 |
# File 'lib/rails_semantic_logger/extensions/active_support/log_subscriber.rb', line 7 def silenced?(event) native_log_level = @event_levels.fetch(event, ::Logger::Severity::FATAL) logger.nil? || SemanticLogger::Levels.index(logger.level) > SemanticLogger::Levels.index(native_log_level) end |