elastic-logger 0.2.5 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8843e1c0329cf9c32997f6e7d05ba3f1d020a2f4
4
- data.tar.gz: f359a0174b97a0b7a82c08afda2035e674ad8838
3
+ metadata.gz: 872c5fac4c442800edc5f50ba4a90b2bd586a8ed
4
+ data.tar.gz: 0fb77f04d8fdcd14e26e5e8fd7063166468a1153
5
5
  SHA512:
6
- metadata.gz: 7caf810deabdc79411ae465504b75fdca03bdc37a99a49963a7dcec777945c167fbeeea2091276fdc41c6acef19367ee4435dbab41649f422e7ecc627df8b71f
7
- data.tar.gz: d868521f62437f0a2b6f0d7a3df6003f92639582917e5019dad3d214ef00f11cc964c4e1a6995a3c07fa5d7fd3474cfc5037c8d18b3697292fa04a17364b76bf
6
+ metadata.gz: 5cca893d60d8fd8a4fe85568d10a1bdbecf7893981fd3d217667729cb5fbaa1bae8a6db5445e292c16f72ff1225728f4e062cf9dbe624ada248bedcf409fedd8
7
+ data.tar.gz: 0a99de0fcaf25d3412da977d41ee6a1d225ceccc1723945ac3082c2a2f14bc3a198cfccd531a392a67153e7a97f24ebf8d5f95798a3dbf05b36b8d40c060bc55
data/README.md CHANGED
@@ -41,14 +41,18 @@ With this file we create two logs, one which will log to elastic, and one to sta
41
41
  ```yml
42
42
  sidekiq_monitor:
43
43
  writer: 'InfaktLogger::ElastickWriter'
44
- rotate_type: 'rotate'
45
- rotate: 1
46
- backup: false
44
+ rotate: 30 # how many days keep in elk
45
+ backup: 90 # how many days keep backup, 0 for no backup, -1 for infinite
47
46
  api_requests:
48
47
  writer: 'InfaktLogger::DiskWriter'
49
- rotate_type: 'rotate'
50
- rotate: 3
51
- backup: false
48
+ delete:
49
+ type: 'standard' # never if you want to keep that log
50
+ unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
51
+ unit_count: # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
52
+ backup:
53
+ type: 'standard' # infinite if you want to keep that log, never for no backups
54
+ unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
55
+ unit_count: # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
52
56
  ```
53
57
  ### Usage
54
58
 
@@ -25,11 +25,11 @@ module ElasticLogger
25
25
  end
26
26
 
27
27
  def index
28
- 'elastic_logger_rotate'
28
+ 'logs_rotate_info'
29
29
  end
30
30
 
31
31
  def keys
32
- ["rotate_type", "rotate", "backup"]
32
+ ["delete", "backup"]
33
33
  end
34
34
  end
35
35
  end
@@ -1,10 +1,12 @@
1
1
  first_sample_log:
2
- writer: 'InfaktLogger::ElkWriter'
3
- rotate_type: 'rotate'
4
- rotate: 1
5
- backup: false
2
+ writer: 'ElasticLogger::ElkWriter'
3
+ delete:
4
+ type: 'standard' # never if you want to keep that log
5
+ unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
6
+ unit_count: 2 # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
7
+ backup:
8
+ type: 'standard' # infinite if you want to keep that log, never for no backups
9
+ unit: 'days' # One of seconds, minutes, hours, days, weeks, months, or years.
10
+ unit_count: 2 # The number of unit (s). unit_count * unit will be calculated out to the relative number of seconds.
6
11
  second_sample_log:
7
12
  writer: 'InfaktLogger::DiskWriter'
8
- rotate_type: 'rotate'
9
- rotate: 3
10
- backup: false
@@ -1,3 +1,3 @@
1
1
  module ElasticLogger
2
- VERSION = '0.2.5'
2
+ VERSION = '0.3.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elastic-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Radosław Woźnik