Class: ScoutApm::Logger::DefaultFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- ScoutApm::Logger::DefaultFormatter
- Defined in:
- lib/scout_apm/logger.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
145 146 147 148 149 |
# File 'lib/scout_apm/logger.rb', line 145 def call(severity, time, progname, msg) # since STDOUT isn't exclusive like the scout_apm.log file, apply a prefix. # XXX: Pass in context to the formatter "[#{Utils::Time.to_s(time)} #{ScoutApm::Agent.instance.context.environment.hostname} (#{$$})] #{severity} : #{msg}\n" end |