lib/ougai/logger.rb in ougai-1.8.0-java vs lib/ougai/logger.rb in ougai-1.8.1
- old
+ new
@@ -15,10 +15,10 @@
super(*args)
@before_log = nil
@default_message = 'No message'
@exc_key = :err
@with_fields = {}
- @formatter = create_formatter
+ @formatter = create_formatter if @formatter.nil?
end
class << self
def child_class
@child_class ||= ChildLogger