class Lumberjack::Formatter

def format(message)

Returns:
  • (Object) - The formatted object.

Parameters:
  • message (Object) -- The message object to format.
def format(message)
  formatter = formatter_for(message.class)
  if formatter&.respond_to?(:call)
    formatter.call(message)
  else
    message
  end
end