tee_logger 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +0 -4
- data/lib/tee_logger.rb +10 -8
- data/lib/tee_logger/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e96ed7955c6a5d8f3ecbe2718ae133c86dcf57
|
4
|
+
data.tar.gz: 2a488ff3ab2b22a5515726a6b1c3b0be109bdb4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54585f50bcb1fc7668548848b7278fa70c1c5207140686f55ebf982fc59b7c6e82648b7521a3afbfe8c26963f07973cf698f1e97d0a7dae95a0b3c5a4362870c
|
7
|
+
data.tar.gz: 1e3bafb69459f0df8d2da4f7e2c6f6f570dcb09b73ebd7baae193002dbff6c5fee7a66433d145f0c1f76a4f170672d6ff7e6d3ccc8badaca8391ed28d43ca287
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
data/lib/tee_logger.rb
CHANGED
@@ -36,14 +36,14 @@ module TeeLogger
|
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
|
-
# TODO:
|
40
|
-
def disable(
|
41
|
-
|
39
|
+
# TODO: Too miscellaneous
|
40
|
+
def disable(target)
|
41
|
+
instance_variable_get("@#{target}").formatter = proc { |s, dt, p, m| }
|
42
42
|
end
|
43
43
|
|
44
|
-
# TODO:
|
45
|
-
def enable(
|
46
|
-
|
44
|
+
# TODO: Too miscellaneous
|
45
|
+
def enable(target)
|
46
|
+
instance_variable_get("@#{target}").formatter = Logger::Formatter.new
|
47
47
|
end
|
48
48
|
|
49
49
|
def progname
|
@@ -53,12 +53,14 @@ module TeeLogger
|
|
53
53
|
end
|
54
54
|
|
55
55
|
def progname=(name = nil)
|
56
|
-
|
56
|
+
# TODO: which?
|
57
|
+
# @logger.progname = name
|
57
58
|
@console.progname = name
|
58
59
|
end
|
59
60
|
|
60
61
|
def formatter
|
61
|
-
|
62
|
+
# TODO: which?
|
63
|
+
# @logger.formatter
|
62
64
|
@console.formatter
|
63
65
|
end
|
64
66
|
|
data/lib/tee_logger/version.rb
CHANGED