lib/semantic_logger/appender/splunk.rb in semantic_logger-4.2.2 vs lib/semantic_logger/appender/splunk.rb in semantic_logger-4.3.0
- old
+ new
@@ -86,15 +86,14 @@
# filter: [Regexp|Proc]
# RegExp: Only include log messages where the class name matches the supplied.
# regular expression. All other messages will be ignored.
# Proc: Only include log messages where the supplied Proc returns true
# The Proc must return true or false.
- def initialize(index: 'main', source_type: nil,
- level: nil, formatter: nil, filter: nil, application: nil, host: nil, &block)
+ def initialize(index: 'main', source_type: nil, **args, &block)
@index = index
@source_type = source_type
- super(level: level, formatter: formatter, filter: filter, application: application, host: host, &block)
+ super(**args, &block)
reopen
end
# After forking an active process call #reopen to re-open
# open the handles to resources