Class: Lucid::LogFormatter

Inherits:
Logger::Formatter
  • Object
show all
Defined in:
lib/lucid.rb

Instance Method Summary collapse

Instance Method Details

#call(severity, time, progname, msg) ⇒ Object



43
44
45
46
47
48
49
50
# File 'lib/lucid.rb', line 43

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