Class: Mixlib::Log::Formatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/garcon/chef/log.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object

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



28
29
30
31
32
33
34
# 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