Class: PushmiPullyu::Logging::SimpleFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/pushmi_pullyu/logging.rb

Overview

Simple formatter which only displays the message. Taken from ActiveSupport

Instance Method Summary collapse

Instance Method Details

#call(_severity, _timestamp, _program_name, msg) ⇒ Object

This method is invoked when a log event occurs


10
11
12
# File 'lib/pushmi_pullyu/logging.rb', line 10

def call(_severity, _timestamp, _program_name, msg)
  "#{msg.is_a?(String) ? msg : msg.inspect}\n"
end