lib/semantic_logger/appender/file.rb in semantic_logger-4.2.2 vs lib/semantic_logger/appender/file.rb in semantic_logger-4.3.0

- old
+ new

@@ -57,19 +57,19 @@ # # And log to a file at the same time, including all :trace level data # SemanticLogger.add_appender(file_name: 'application.log') # # logger = SemanticLogger['test'] # logger.info 'Hello World' - def initialize(io: nil, file_name: nil, level: nil, formatter: nil, filter: nil, application: nil, host: nil, &block) + def initialize(io: nil, file_name: nil, **args, &block) if io @log = io else @file_name = file_name raise 'SemanticLogging::Appender::File missing mandatory parameter :file_name or :io' unless file_name reopen end - super(level: level, formatter: formatter, filter: filter, application: application, host: host, &block) + super(**args, &block) end # After forking an active process call #reopen to re-open # open the file handles etc to resources #