Class: LoggingLibrary::CustomFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/logging_library/custom_formatter.rb

Overview

Handles log formatting. Not intended to be used from user code.

Defined Under Namespace

Classes: LogMessage

Constant Summary collapse

DATE_PATTERN =
'%Y-%m-%d %H:%M:%S.%L'

Instance Method Summary collapse

Instance Method Details

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



136
137
138
# File 'lib/logging_library/custom_formatter.rb', line 136

def call(severity, time, progname, message)
  LogMessage.new(severity, time, progname, message).to_formatted_string
end