class Mixlib::Log::Formatter

Public Instance Methods

call(severity, time, progname, msg) click to toggle source

Set Chef::Log::Formatter.show_time == true/false to enable/disable the printing of the time with the message.

# File lib/garcon/chef/log.rb, line 28
def call(severity, time, progname, msg)
  format % [
    format_datetime(time).blue,
    format_severity(severity),
    msg2str(msg).strip
  ]
end