lib/semantic_logger/appender/file.rb in semantic_logger-2.7.0 vs lib/semantic_logger/appender/file.rb in semantic_logger-2.8.0

- old
+ new

@@ -37,20 +37,20 @@ # SemanticLogger.add_appender('application.log') # # logger = SemanticLogger['test'] # logger.info 'Hello World' # - def initialize(filename, level=nil, &block) + def initialize(filename, level=nil, filter=nil, &block) raise "filename cannot be null when initializing the SemanticLogging::Appender::File" unless filename @log = if filename.respond_to?(:write) and filename.respond_to?(:close) filename else @filename = filename reopen end # Set the log level and formatter if supplied - super(level, &block) + super(level, filter, &block) end # After forking an active process call #reopen to re-open # open the file handles etc to resources #