Class: Crossdomain::Logging::Pretty

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

Instance Method Summary collapse

Instance Method Details

#call(severity, time, program_name, message) ⇒ Object

Provide a call() method that returns the formatted message.



9
10
11
# File 'lib/crossdomain/logging.rb', line 9

def call(severity, time, program_name, message)
  "#{time.utc.iso8601} #{Process.pid} #{severity}: #{message}\n"
end