Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 22dc24966a
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.463 kb
class F2pLogFormatter
def call(severity, datetime, progname, msg)
sv = severity[0, 1] + ','
dt = datetime.strftime("[%H:%M:%S.") + "%03d] " % (datetime.usec / 1000)
str = msg2str(msg)
[sv, dt, str, "\n"].join
end
private
def msg2str(msg)
case msg
when ::String
msg.strip
when ::Exception
"#{ msg.message } (#{ msg.class })\n" <<
(msg.backtrace || []).join("\n")
else
msg.inspect
end
end
end
Jump to Line
Something went wrong with that request. Please try again.