Class: Logtail::Config::SimpleLogFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/logtail/config.rb

Instance Method Summary collapse

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, timestamp, progname, msg)
  "[Logtail] #{String === msg ? msg : msg.inspect}\n"
end