Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (16 sloc) 0.568 kb
# encoding: utf-8
require_relative '../lib/yell'
puts <<-EOS
# On the basics, Yell works just like any other logging library.
#
# However, it enriches your log messages to make it more readable. By default,
# it will format the given message as follows:
logger = Yell.new STDOUT
logger.info "Hello World!"
#=> "2012-02-29T09:30:00+01:00 [ INFO] 65784 : Hello World!"
# ^ ^ ^ ^
# ISO8601 Timestamp Level Pid Message
EOS
puts "=== actual example ==="
logger = Yell.new STDOUT
logger.info "Hello World!"
Jump to Line
Something went wrong with that request. Please try again.