cute_logger 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/cute_logger.rb +11 -0
- data/lib/cute_logger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6f15d61ff57ab6849cf6e23106917a6df48773bae8959e21d1f0ad6be67bda0e
|
4
|
+
data.tar.gz: 2a68b414c37a5a854838a8036136023123fa7e40f2168d30686fb11c7e52e8ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c80a6e196bbc15507c52e182e3dfcd24e2173d7601824dca3516cf9108b324c759a7dd10fb48f12ee88c3231d40b648b33c3fcdc54119b3babcbc00582992cbc
|
7
|
+
data.tar.gz: 42187354e4684fb2a746f40eedd227671d9411a964bfc27a197ec1164d36816edb2d7e4bff4e81f381b06bc9feb6ccd569d44c37da4994a31450c2fdf6cb3bcd
|
data/lib/cute_logger.rb
CHANGED
@@ -26,6 +26,17 @@ module CuteLogger
|
|
26
26
|
"#{datetime},#{severity},#{Process.pid.to_s(16)},#{Thread.current.object_id.to_s(16)}" \
|
27
27
|
",#{progname},#{msg}\n"
|
28
28
|
end
|
29
|
+
|
30
|
+
@signals_read, @signals_write = IO.pipe
|
31
|
+
|
32
|
+
trap('HUP') { @signals_write.puts('HUP') }
|
33
|
+
|
34
|
+
Thread.new do
|
35
|
+
while readable_io = IO.select([@signals_read])
|
36
|
+
readable_io.first[0].gets
|
37
|
+
@logger.reopen
|
38
|
+
end
|
39
|
+
end
|
29
40
|
end
|
30
41
|
|
31
42
|
def self.severity=(text)
|
data/lib/cute_logger/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cute_logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jorge Del Rio
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|
@@ -134,7 +134,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
134
134
|
version: '0'
|
135
135
|
requirements: []
|
136
136
|
rubyforge_project:
|
137
|
-
rubygems_version: 2.
|
137
|
+
rubygems_version: 2.7.6
|
138
138
|
signing_key:
|
139
139
|
specification_version: 4
|
140
140
|
summary: This gem provides accesible methods for doing the application logging in
|