Class: Mixlib::Log::Formatter
- Defined in:
- lib/garcon/chef/log.rb
Instance Method Summary collapse
-
#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.
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 |