tlogger 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/tlogger.rb +7 -4
- data/lib/tlogger/version.rb +1 -1
- data/samples/basic2.rb +2 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc3fda5c05c3948e3e08c0c184783455568b5fc3e37cf30a1d3029ac7be83d5c
|
4
|
+
data.tar.gz: 4eaf9af7bfea0d31fae02b83f0580ddd364369ae6e0dc6f2a5b1e691a3491c6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1983481092884cec366883ff9e8759166f29b0c10712f09b533929fa7ebe60f839c035c47219a0d803f95052ab1f76630dab247a5efd21f8bd6456efeab0461
|
7
|
+
data.tar.gz: a875347a3631098a66eaff1140813d4b3b849452a1a0e9c201cba19f19e2c9c0fa7767faab22be8a246ec5fc9987f5db21f1aabcb5c27461ca0efa84b7185ff9
|
data/Gemfile.lock
CHANGED
data/lib/tlogger.rb
CHANGED
@@ -232,10 +232,6 @@ module Tlogger
|
|
232
232
|
args[0] = "[#{tag.join}] #{args[0]}"
|
233
233
|
@tlogger.send(mtd,*args,&block)
|
234
234
|
end
|
235
|
-
elsif TloggerConf.is_auto_tag_on?
|
236
|
-
intDebug("auto_tag is on...")
|
237
|
-
args = tag_class(*args)
|
238
|
-
@tlogger.send(mtd,*args,&block)
|
239
235
|
elsif TloggerConf.is_tag_active?(@tag)
|
240
236
|
intDebug("Tagged output...")
|
241
237
|
tag = []
|
@@ -246,6 +242,12 @@ module Tlogger
|
|
246
242
|
end
|
247
243
|
args[0] = "[#{tag.join}] #{args[0]}"
|
248
244
|
@tlogger.send(mtd,*args,&block)
|
245
|
+
|
246
|
+
elsif TloggerConf.is_auto_tag_on?
|
247
|
+
intDebug("auto_tag is on...")
|
248
|
+
args = tag_class(*args)
|
249
|
+
@tlogger.send(mtd,*args,&block)
|
250
|
+
|
249
251
|
end
|
250
252
|
|
251
253
|
end
|
@@ -295,6 +297,7 @@ module Tlogger
|
|
295
297
|
else
|
296
298
|
msg = sp[-1]
|
297
299
|
end
|
300
|
+
|
298
301
|
msg
|
299
302
|
|
300
303
|
#wd = Dir.getwd
|
data/lib/tlogger/version.rb
CHANGED
data/samples/basic2.rb
CHANGED
@@ -7,13 +7,14 @@ l.tag = "dance"
|
|
7
7
|
l.debug "here"
|
8
8
|
|
9
9
|
#Tlogger::TloggerConf.blacklist_tag("jan")
|
10
|
-
Tlogger::TloggerConf.show_source
|
11
10
|
|
11
|
+
Tlogger::TloggerConf.show_source
|
12
12
|
l.with_tag 'jan' do
|
13
13
|
l.debug "inside"
|
14
14
|
puts "inside string"
|
15
15
|
l.debug "outside"
|
16
16
|
end
|
17
|
+
Tlogger::TloggerConf.hide_source
|
17
18
|
|
18
19
|
l.debug "towards the end"
|
19
20
|
|