class Nand::Logging::TimeFormatter
Public Instance Methods
call(severity, time, progname, msg)
click to toggle source
# File lib/nand/logger.rb, line 33 def call(severity, time, progname, msg) # time PID ThreadID LEVEL progname message format = "%s #%d[%x] - %s - %s: %s\n" format % ["#{time.strftime('%H:%M:%S.%6N')}", $$, Thread.current.object_id, severity[0...1], progname, msg2str(msg)] end