Class: EXEL::Logging::PrefixFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/exel/logging.rb

Overview

Formats log messages with timestamp, severity and Logging prefix (if set via with_prefix)

Instance Method Summary collapse

Instance Method Details

#call(severity, time, _program_name, message) ⇒ Object



11
12
13
# File 'lib/exel/logging.rb', line 11

def call(severity, time, _program_name, message)
  "#{time.utc} severity=#{severity}, #{Logging.prefix}#{message}\n"
end