Skip to content

Instantly share code, notes, and snippets.

require 'logger'
# Example code for Ruby's Logger module
# http://ruby-doc.org/stdlib-2.3.0/libdoc/logger/rdoc/Logger.html
log = Logger.new(STDOUT)
log.level = Logger::WARN
log.unknown("Unknown") # Always log