Class: Loba::Internal::Platform::Formatter Private
- Inherits:
-
Object
- Object
- Loba::Internal::Platform::Formatter
- Defined in:
- lib/loba/internal/platform/formatter.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Custom logging formatter (for when Rails is not involved)
Instance Method Summary collapse
-
#call(_severity, _time, _progname, message) ⇒ String
private
Formats supplied message to write to logger.
Instance Method Details
#call(_severity, _time, _progname, message) ⇒ String
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Formats supplied message to write to logger.
This formatter ignores severity
, time
, and progname
because it enforces that Loba messages are written out to the log without additional ornamentation.
16 17 18 |
# File 'lib/loba/internal/platform/formatter.rb', line 16 def call(_severity, _time, _progname, ) "#{format()}#{$INPUT_RECORD_SEPARATOR}" end |