Skip to content

Instantly share code, notes, and snippets.

@nmeylan
Created December 21, 2014 19:37
Show Gist options
  • Save nmeylan/9916d37370991beeaf40 to your computer and use it in GitHub Desktop.
Save nmeylan/9916d37370991beeaf40 to your computer and use it in GitHub Desktop.
logger.formatter = ->(severity, datetime, progname, msg) do
"#{datetime.strftime('%Y-%m-%d %H:%M:%S')} - #{sprintf('%-5s',severity)} - #{msg}\n"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment