Class: Logtail::Logger::JSONFormatter
- Defined in:
- lib/logtail/logger.rb
Overview
Constant Summary
Constants inherited from Formatter
Formatter::EMPTY_ARRAY, Formatter::SEVERITY_MAP
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
110 111 112 113 |
# File 'lib/logtail/logger.rb', line 110 def call(severity, time, progname, msg) # use << for concatenation for performance reasons build_log_entry(severity, time, progname, msg).to_json << "\n" end |