logger 1.4.4 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logger/formatter.rb +3 -2
- data/lib/logger/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdee784517977e63d746c2ea95367978a203a68472dfdbaac094e49b291ce170
|
4
|
+
data.tar.gz: a80c2295c6ea2d146f6a21f9d2c76320a0bedebac7261c88785a7e45f3a7f91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b8af19f1a91db15b14c9a3db994184b0b918db2dae08380813495b135f5cbf7d55563d75a155ba3924b023b7123c7934343bad913880c2b5511e34c99e86972
|
7
|
+
data.tar.gz: 0eb96b3097cc63f8fbcda65de469effd3355f6381152b1e8344c35f2222e91c51adc669bc8c1ccc28a5706efdbea0b07926326e35a9dfa8fad1c545101485b9b
|
data/lib/logger/formatter.rb
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
class Logger
|
4
4
|
# Default formatter for log messages.
|
5
5
|
class Formatter
|
6
|
-
Format = "%s, [%s#%d] %5s -- %s: %s\n"
|
6
|
+
Format = "%s, [%s #%d] %5s -- %s: %s\n"
|
7
|
+
DatetimeFormat = "%Y-%m-%dT%H:%M:%S.%6N"
|
7
8
|
|
8
9
|
attr_accessor :datetime_format
|
9
10
|
|
@@ -19,7 +20,7 @@ class Logger
|
|
19
20
|
private
|
20
21
|
|
21
22
|
def format_datetime(time)
|
22
|
-
time.strftime(@datetime_format ||
|
23
|
+
time.strftime(@datetime_format || DatetimeFormat)
|
23
24
|
end
|
24
25
|
|
25
26
|
def msg2str(msg)
|
data/lib/logger/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Naotoshi Seo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-
|
12
|
+
date: 2021-12-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|