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
116 117 118 119 |
# File 'lib/logtail/logger.rb', line 116 def call(severity, time, progname, msg) # use << for concatenation for performance reasons build_log_entry(severity, time, progname, msg).to_json << "\n" end |