Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (9 sloc) 0.401 kb
#defines a custom formatter for all log messages
class NiceLogger < Logger
def format_message(severity, timestamp, progname, msg)
"[%s|#%5d] %s\n" % [severity[0..0], $$, msg]
end
# def format_message(severity, timestamp, msg, progname)
# "#{timestamp.strftime("%b %d %H:%M:%S")} #{Socket.gethostname.split('.').first} rails[#{$PID}]: #{progname.gsub(/\n/, '').lstrip}\n"
# end
end
Jump to Line
Something went wrong with that request. Please try again.