class Marlowe::SimpleFormatter

Marlowe::SimpleFormatter is a subclass of ActiveSupport::Logger::SimpleFormatter 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/simple_formatter.rb, line 9
def call(severity, timestamp, progname, msg)
  "[#{RequestStore.store[:correlation_id]}] #{super}"
end