Class: Logtail::Logger::PassThroughFormatter
- Defined in:
- lib/logtail/logger.rb
Overview
Passes through the LogEntry object. This is specifically used for the Logtail::LogDevices::HTTP class. This allows the IO device to format it however it wants. This is necessary for MessagePack because it requires a fixed array size before encoding. And since HTTP is sending data in batches, the encoding should happen there.
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
121 122 123 |
# File 'lib/logtail/logger.rb', line 121 def call(severity, time, progname, msg) build_log_entry(severity, time, progname, msg) end |