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

22 lines (13 sloc) 0.522 kb
# encoding: utf-8
require_relative '../lib/yell'
puts <<-EOS
# The extended formatting string looks like: %d [%5L] %p %h : %m.
logger = Yell.new STDOUT, :format => "[%f:%n in `%M'] %m"
logger.info "Hello World!"
#=> [003.4-formatting-on-your-own.rb:20 in `<main>'] Hello World!
# ^ ^ ^ ^
# filename line method message
EOS
puts "=== actuale example ==="
logger = Yell.new STDOUT, :format => "[%f:%n in `%M'] %m"
logger.info "Hello World!"
Jump to Line
Something went wrong with that request. Please try again.