Class: ScoutApm::Logger::TaggedFormatter

Inherits:
DefaultFormatter show all
Defined in:
lib/scout_apm/logger.rb

Overview

since STDOUT & STDERR isn’t only used for ScoutApm logging, apply a prefix to make it easily greppable

Constant Summary collapse

TAG =
"[Scout] "

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



153
154
155
# File 'lib/scout_apm/logger.rb', line 153

def call(severity, time, progname, msg)
  TAG + super
end