Class: Logger

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/logger.rb

Instance Method Summary collapse

Instance Method Details

#format_message(level, time, progname, msg) ⇒ Object

Redefining to output a smaller timestamp.


5
6
7
# File 'lib/ext/logger.rb', line 5

def format_message(level, time, progname, msg)
  "[#{time}] #{msg.to_s}\n"
end