Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (18 sloc) 0.664 kB
# encoding: utf-8
require File.dirname(__FILE__) + '/../lib/yell'
puts <<-EOS
# Additionally to writing only on specific levels, you may pass a range to
# the :level option:
logger = Yell.new STDOUT, :level => (:debug..:warn)
[:debug, :info, :warn, :error, :fatal].each do |level|
logger.send( level, level )
end
#=> "2012-02-29T09:30:00+01:00 [DEBUG] 65784 : debug"
#=> "2012-02-29T09:30:00+01:00 [ INFO] 65784 : info"
#=> "2012-02-29T09:30:00+01:00 [ WARN] 65784 : warn"
EOS
puts "=== actuale example ==="
logger = Yell.new STDOUT, :level => (:debug..:warn)
[:debug, :info, :warn, :error, :fatal].each do |level|
logger.send( level, level )
end
Jump to Line
Something went wrong with that request. Please try again.