Class: R2OAS::StdoutLogger::Formatter
- Defined in:
- lib/r2-oas/logger/stdout_logger.rb
Overview
Default formatter for log messages.
Constant Summary collapse
- Format =
"%s, [%s#%d] %5s -- %s: %s\n"
Instance Attribute Summary collapse
-
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
Instance Method Summary collapse
- #call(severity, time, progname, msg) ⇒ Object
-
#initialize ⇒ Formatter
constructor
A new instance of Formatter.
Constructor Details
#initialize ⇒ Formatter
Returns a new instance of Formatter.
102 103 104 |
# File 'lib/r2-oas/logger/stdout_logger.rb', line 102 def initialize @datetime_format = nil end |
Instance Attribute Details
#datetime_format ⇒ Object
Returns the value of attribute datetime_format.
100 101 102 |
# File 'lib/r2-oas/logger/stdout_logger.rb', line 100 def datetime_format @datetime_format end |