Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 25 lines (16 sloc) 0.567 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
# 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!"
Something went wrong with that request. Please try again.