Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 26 lines (16 sloc) 0.568 kB
5de77a6 @rudionrails FIX: Examples not executable anymore
authored
1 # encoding: utf-8
9b82ec3 @rudionrails ST: Added examples
authored
2
3f563aa @rudionrails FIX: Updated Examples
authored
3 require_relative '../lib/yell'
9b82ec3 @rudionrails ST: Added examples
authored
4
5 puts <<-EOS
6
7 # On the basics, Yell works just like any other logging library.
8 #
9 # However, it enriches your log messages to make it more readable. By default,
10 # it will format the given message as follows:
11
12 logger = Yell.new STDOUT
13 logger.info "Hello World!"
14
15 #=> "2012-02-29T09:30:00+01:00 [ INFO] 65784 : Hello World!"
16 # ^ ^ ^ ^
17 # ISO8601 Timestamp Level Pid Message
18
19
20 EOS
21
22 puts "=== actual example ==="
23 logger = Yell.new STDOUT
24 logger.info "Hello World!"
91f445a @rudionrails CHORE: Added example for the loggable module
authored
25
Something went wrong with that request. Please try again.