class Logtail::Logger::PassThroughFormatter

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.

Public Instance Methods

call(severity, time, progname, msg) click to toggle source
# File lib/logtail/logger.rb, line 121
def call(severity, time, progname, msg)
  build_log_entry(severity, time, progname, msg)
end