lib/semantic_logger/processor.rb in semantic_logger-4.7.4 vs lib/semantic_logger/processor.rb in semantic_logger-4.8.0

- old
+ new

@@ -1,22 +1,22 @@ module SemanticLogger # Thread that submits and processes log requests class Processor < Appender::Async - # Allow the internal logger to be overridden from its default of STDERR + # Allow the internal logger to be overridden from its default of $stderr # Can be replaced with another Ruby logger or Rails logger, but never to # SemanticLogger::Logger itself since it is for reporting problems # while trying to log to the various appenders class << self attr_writer :logger end # Internal logger for SemanticLogger # For example when an appender is not working etc.. - # By default logs to STDERR + # By default logs to $stderr def self.logger @logger ||= begin - l = SemanticLogger::Appender::File.new(io: STDERR, level: :warn) + l = SemanticLogger::Appender::File.new(io: $stderr, level: :warn) l.name = name l end end