ant-logger 0.1.0 → 0.2.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: 79e7fb8ef1bfebac41fd2efbf61449eddc677710fb7fcd8770d13f0b7bfa675f
4
- data.tar.gz: 2c6616ad37a49a6711da08408e4a099a3f4f311b4b3680c5ff4cb0caac43e0c5
3
+ metadata.gz: 7e10c626e8379acc79220740785fd6eb3ca6aeff739721c1864674bfab6ce14c
4
+ data.tar.gz: f056139cbc45566c9e487053836bdb9b900de6d07629bef199ecce6cc29ba490
5
5
  SHA512:
6
- metadata.gz: dd89dc3c61ec1b3230f03eaae55ff24cb766b996fa5bcfeea62ccab39cbc9fd75cd515c4313d3caf978485e5ea24c0c403a89e4e2de878e644da80f3075cc900
7
- data.tar.gz: 49aa287b29c47a848bc47210538cae54a38ef559c70fbeb420b45c3419b3e84851a3b4b01f8eaf36d775005833ac5e350f0979aee5d77524004578c5d38608a6
6
+ metadata.gz: 173e637ba1aa57f27cad9b260f80f97fd22cca18120b9a953d5b5d3c68c1de5962647c11dbdcf5aa125e8bca39a92039edc2dc427e2805f44fa389b356f31540
7
+ data.tar.gz: 6c2ea304b7d952e778e67ccf11961e9c42d8ce8da06abc978924a511cd90c7a60a12f1ca7ddb9a8e827868993111fff866acce8a04aa0fb6fd582de58f9a2ee9
@@ -23,7 +23,7 @@ module Ant
23
23
 
24
24
  def initialize(config)
25
25
  @original_config = config
26
- register('file', config['file'] || 'application.log')
26
+ register('file', config['stdout'] ? STDOUT : config['file'] || 'application.log')
27
27
  register('rotate_days', config['rotate_days'] || 7)
28
28
  register('rotate_size', config['rotate_size'] || 100 * 1024**2) # 100Mb
29
29
  register('date_format', config['date_format'] || '%Y-%m-%d %H:%M:%S')
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ant
4
4
  module Logger
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ant-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilberto Vargas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-07 00:00:00.000000000 Z
11
+ date: 2019-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ant-core
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.0.3
143
+ rubygems_version: 3.0.1
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: Implements a ant-logger with a format based on cute_logger