Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (16 sloc) 0.584 kB
# encoding: utf-8
require File.dirname(__FILE__) + '/../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.