tlogger 0.6.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +6 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +3 -0
- data/README.md +91 -9
- data/Rakefile +9 -1
- data/bin/console +4 -4
- data/lib/tlogger.rb +11 -309
- data/lib/tlogger/logger_group.rb +105 -0
- data/lib/tlogger/tlogger.rb +380 -0
- data/lib/tlogger/version.rb +1 -1
- data/samples/basic.rb +64 -35
- data/samples/group.rb +54 -0
- data/tlogger.gemspec +12 -27
- metadata +21 -74
- data/Gemfile.lock +0 -31
- data/LICENSE.txt +0 -21
- data/release.job +0 -53
- data/samples/basic2.rb +0 -25
data/samples/basic2.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
l = Tlogger.new
|
4
|
-
l.tag = "dance"
|
5
|
-
#l.activate_tag(Tlogger::TloggerConf::INT_TAG)
|
6
|
-
|
7
|
-
l.debug "here"
|
8
|
-
|
9
|
-
#Tlogger::TloggerConf.blacklist_tag("jan")
|
10
|
-
Tlogger::TloggerConf.show_source
|
11
|
-
|
12
|
-
l.with_tag 'jan' do
|
13
|
-
l.debug "inside"
|
14
|
-
puts "inside string"
|
15
|
-
l.debug "outside"
|
16
|
-
end
|
17
|
-
|
18
|
-
l.debug "towards the end"
|
19
|
-
|
20
|
-
l.tdebug :hans, "hans here"
|
21
|
-
l.terror :solo, "Error!"
|
22
|
-
l.tinfo :luke, "This is info!"
|
23
|
-
l.twarn :sky, "Sky is the limit"
|
24
|
-
|
25
|
-
#l.warn "warning!!"
|