Skip to content
Newer
Older
100644 22 lines (13 sloc) 395 Bytes
eaec53f @rudionrails CHORE: Added repository example
authored
1 # encoding: utf-8
2
3 require_relative '../lib/yell'
4
5 puts <<-EOS
6
7 # You can add a logger to the global repository.
8 #
9 # create a logger named 'mylog' that logs to stdout
10 Yell.new :stdout, :name => 'mylog'
11
12 # Later in the code, you can get your logger back
13 Yell['mylog'].info "Hello World!"
14
15
16 EOS
17
18 puts "=== actuale example ==="
19 Yell.new :stdout, :name => 'mylog'
20 Yell['mylog'].info "Hello World!"
21
Something went wrong with that request. Please try again.