Skip to content

Commit

Permalink
Direct access to appenders in v5
Browse files Browse the repository at this point in the history
  • Loading branch information
reidmorrison committed Oct 7, 2021
1 parent 7cf794f commit c94ae1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rails_semantic_logger/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class Engine < ::Rails::Engine
# Don't use a background thread for logging
SemanticLogger.sync!
# Add a stderr logger when running inside a Rails console unless one has already been added.
if config.rails_semantic_logger.console_logger && !SemanticLogger::Logger.processor.appenders.console_output?
if config.rails_semantic_logger.console_logger && !SemanticLogger.appenders.console_output?
SemanticLogger.add_appender(io: STDERR, formatter: :color)
end

Expand Down

0 comments on commit c94ae1f

Please sign in to comment.