Class: Logger::Formatter
- Inherits:
-
Object
- Object
- Logger::Formatter
- Defined in:
- lib/db_meta/logger.rb
Constant Summary collapse
- FORMAT2 =
"%s\t%s\t%s\n"
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
7 8 9 10 |
# File 'lib/db_meta/logger.rb', line 7 def call(severity, time, progname, msg) time_in_string = "#{time.strftime("%Y-%m-%d %H:%M:%S")}.#{"%03d" % (time.usec / 1000)}" FORMAT2 % [time_in_string, severity, msg] end |