Method: ThreadFormatter#call

Defined in:
lib/common/thread_formatter.rb

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



15
16
17
18
19
# File 'lib/common/thread_formatter.rb', line 15

def call(severity, time, progname, msg)
  thread_name = Thread.current[:name] || "0x#{Thread.current.object_id.to_s(16)}"
  FORMAT % [severity[0..0], format_datetime(time), $$, thread_name, severity, progname,
            msg2str(msg)]
end