lib/logstop/formatter.rb in logstop-0.2.2 vs lib/logstop/formatter.rb in logstop-0.2.3
- old
+ new
@@ -8,7 +8,17 @@
end
def call(severity, timestamp, progname, msg)
Logstop.scrub(@formatter.call(severity, timestamp, progname, msg), ip: @ip)
end
+
+ # for tagged logging
+ def method_missing(method_name, *arguments, &block)
+ @formatter.send(method_name, *arguments, &block)
+ end
+
+ # for tagged logging
+ def respond_to?(method_name, include_private = false)
+ @formatter.send(:respond_to?, method_name, include_private) || super
+ end
end
end