Class: LoggingLibrary::CustomFormatter
- Inherits:
-
Logger::Formatter
- Object
- Logger::Formatter
- LoggingLibrary::CustomFormatter
- 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, ) LogMessage.new(severity, time, progname, ).to_formatted_string end |