Class: Lucid::LogFormatter
- Defined in:
- lib/lucid.rb
Instance Method Summary collapse
Instance Method Details
#call(severity, time, progname, msg) ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'lib/lucid.rb', line 47 def call(severity, time, progname, msg) if msg.is_a?(String) "\n[ LUCID (#{severity}) ] #{msg}\n" else msg = Lucid.breakdown(msg) "\n[ LUCID (#{severity}) ] \n#{msg}\n" end end |