class Marlowe::Formatter
Marlowe::Formatter
is a subclass of ActiveSupport::Logger::Formatter
that adds a correlation id string to a rails log.
Public Instance Methods
call(_severity, _timestamp, _progname, _msg)
click to toggle source
Overrides the formatter return to add the correlation id.
# File lib/marlowe/formatter.rb, line 10 def call(_severity, _timestamp, _progname, _msg) "[#{RequestStore.store[:correlation_id]}] #{super}" end