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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86ff5c7f2a189b07730b1fbe6287938cf7501889ee62bd89d8de6d02902f1bee
4
- data.tar.gz: 62343e3ea1b0dbd6cdb94ff67721f1f86e54876bd6cd0265b112181d60fd1125
3
+ metadata.gz: fdee784517977e63d746c2ea95367978a203a68472dfdbaac094e49b291ce170
4
+ data.tar.gz: a80c2295c6ea2d146f6a21f9d2c76320a0bedebac7261c88785a7e45f3a7f91e
5
5
  SHA512:
6
- metadata.gz: 302bbc40320bd744a40924ce6837499d2d9460ebab7745805352cb86d1348737a350bcb94918474cc0cf517b04b6b374eddcfc6a9d142d92943d99ec746df335
7
- data.tar.gz: c4d057679ca2aed3e4e57424eacb0167ebb34fcb135bb7b9961a7f2e4b0bfdb33a6f902cd5255acaee7d04adb10d9d5e7035a3784aa0b3e9bc19b5fdd2d528e7
6
+ metadata.gz: 3b8af19f1a91db15b14c9a3db994184b0b918db2dae08380813495b135f5cbf7d55563d75a155ba3924b023b7123c7934343bad913880c2b5511e34c99e86972
7
+ data.tar.gz: 0eb96b3097cc63f8fbcda65de469effd3355f6381152b1e8344c35f2222e91c51adc669bc8c1ccc28a5706efdbea0b07926326e35a9dfa8fad1c545101485b9b
@@ -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 || "%Y-%m-%dT%H:%M:%S.%6N ")
23
+ time.strftime(@datetime_format || DatetimeFormat)
23
24
  end
24
25
 
25
26
  def msg2str(msg)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Logger
4
- VERSION = "1.4.4"
4
+ VERSION = "1.5.0"
5
5
  end
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.4
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-10-19 00:00:00.000000000 Z
12
+ date: 2021-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler