Module: Dlog::StderrFormatter
- Defined in:
- lib/dlog.rb
Class Method Summary collapse
-
.call(severity, time, progname, msg) ⇒ Object
formatter#call is invoked with 4 arguments: severity, time, progname and msg for each log.
Class Method Details
.call(severity, time, progname, msg) ⇒ Object
formatter#call is invoked with 4 arguments: severity, time, progname and msg for each log. Bear in mind that time is a Time and msg is an Object that user passed and it could not be a String.
94 95 96 |
# File 'lib/dlog.rb', line 94 def self.call(severity, time, progname, msg) "#{msg}\n" end |