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 +4 -4
- data/lib/ant/logger/config.rb +1 -1
- data/lib/ant/logger/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e10c626e8379acc79220740785fd6eb3ca6aeff739721c1864674bfab6ce14c
|
4
|
+
data.tar.gz: f056139cbc45566c9e487053836bdb9b900de6d07629bef199ecce6cc29ba490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 173e637ba1aa57f27cad9b260f80f97fd22cca18120b9a953d5b5d3c68c1de5962647c11dbdcf5aa125e8bca39a92039edc2dc427e2805f44fa389b356f31540
|
7
|
+
data.tar.gz: 6c2ea304b7d952e778e67ccf11961e9c42d8ce8da06abc978924a511cd90c7a60a12f1ca7ddb9a8e827868993111fff866acce8a04aa0fb6fd582de58f9a2ee9
|
data/lib/ant/logger/config.rb
CHANGED
@@ -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')
|
data/lib/ant/logger/version.rb
CHANGED
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.
|
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-
|
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.
|
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
|