Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (13 sloc) 0.535 kb
5de77a6 Rudolf Schmidt FIX: Examples not executable anymore
authored
1 # encoding: utf-8
9b82ec3 Rudolf Schmidt ST: Added examples
authored
2
3f563aa Rudolf Schmidt FIX: Updated Examples
authored
3 require_relative '../lib/yell'
9b82ec3 Rudolf Schmidt ST: Added examples
authored
4
5 puts <<-EOS
6
7 # The extended formatting string looks like: %d [%5L] %p %h : %m.
8
9 logger = Yell.new STDOUT, :format => Yell::ExtendedFormat
10 logger.info "Hello World!"
11 #=> "2012-02-29T09:30:00+01:00 [ INFO] 65784 localhost : Hello World!"
12 # ^ ^ ^ ^ ^
13 # ISO8601 Timestamp Level Pid Hostname Message
14
15
16 EOS
17
18 puts "=== actuale example ==="
19 logger = Yell.new STDOUT, :format => Yell::ExtendedFormat
20 logger.info "Hello World!"
21
Something went wrong with that request. Please try again.