Class: SmallWonder::Log::Formatter
- Inherits:
-
Mixlib::Log::Formatter
- Object
- Mixlib::Log::Formatter
- SmallWonder::Log::Formatter
- Defined in:
- lib/small_wonder/log.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
14 15 16 17 18 |
# File 'lib/small_wonder/log.rb', line 14 def call(severity, time, progname, msg) str = format("[%s] %s\n", time.strftime("%H:%M:%S"), msg).colorize(COLORS[severity]) end |