Class: Timber::Logger::PassThroughFormatter
- Inherits:
-
Formatter
- Object
- Formatter
- Timber::Logger::PassThroughFormatter
- Defined in:
- lib/timber/logger.rb
Overview
Passes through the LogEntry object. This is specifically used for the Timber::LogDevices::HTTP class. This allows the IO device to format it however it wants. This is neccessary for MessagePack because it requires a fixed array size before encoding. And since HTTP is sending data in batches, the encoding should happen there.
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
121 122 123 |
# File 'lib/timber/logger.rb', line 121 def call(severity, time, progname, msg) build_log_entry(severity, time, progname, msg) end |