lib/semantic_logger/processor.rb in semantic_logger-4.6.1 vs lib/semantic_logger/processor.rb in semantic_logger-4.7.0
- old
+ new
@@ -11,15 +11,16 @@
# Internal logger for SemanticLogger
# For example when an appender is not working etc..
# By default logs to STDERR
def self.logger
- @logger ||= begin
- l = SemanticLogger::Appender::File.new(io: STDERR, level: :warn)
- l.name = name
- l
- end
+ @logger ||=
+ begin
+ l = SemanticLogger::Appender::File.new(io: STDERR, level: :warn)
+ l.name = name
+ l
+ end
end
attr_reader :appenders
def initialize(max_queue_size: -1)
@@ -28,9 +29,10 @@
end
# Start the appender thread
def start
return false if active?
+
thread
true
end
end
end