Skip to content

Instantly share code, notes, and snippets.

@lotherk
Last active August 29, 2015 13:57
Show Gist options
  • Save lotherk/9492553 to your computer and use it in GitHub Desktop.
Save lotherk/9492553 to your computer and use it in GitHub Desktop.
require 'logger'
logger = Logger.new(STDOUT)
logger.progname = "MyApp"
logger.info "This is a log message"
logger.info("MyApp#method") { "This is a log message" }
logger.info "This is a log message, again"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment