Class: Logtail::Config::SimpleLogFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- Logtail::Config::SimpleLogFormatter
- Defined in:
- lib/logtail/config.rb
Instance Method Summary collapse
-
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs.
Instance Method Details
#call(severity, timestamp, progname, msg) ⇒ Object
This method is invoked when a log event occurs
21 22 23 |
# File 'lib/logtail/config.rb', line 21 def call(severity, , progname, msg) "[Logtail] #{String === msg ? msg : msg.inspect}\n" end |