Class: Loba::Internal::Platform::Formatter Private

Inherits:
Object
  • Object
show all
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

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.

Parameters:

  • message (String)

    Loba content to write out

Returns:

  • (String)

    message formatted for writing to log



16
17
18
# File 'lib/loba/internal/platform/formatter.rb', line 16

def call(_severity, _time, _progname, message)
  "#{format(message)}#{$INPUT_RECORD_SEPARATOR}"
end