Skip to content

Instantly share code, notes, and snippets.

@func09
Created April 21, 2009 02:02
Show Gist options
  • Save func09/98887 to your computer and use it in GitHub Desktop.
Save func09/98887 to your computer and use it in GitHub Desktop.
class Logger
def format_message(severity, timestamp, progname, msg)
"[#{severity}] #{progname} #{timestamp.strftime("%Y-%m-%d %H:%M:%S")} (#{$$}) : #{msg}\n"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment