applicaster-logger 0.6.5 → 0.6.6

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
  SHA1:
3
- metadata.gz: 04c257bdb5651908721e89e2f8afd620658f86ce
4
- data.tar.gz: bb88e5bfdcdee360a3ae04c131e1eb1008610012
3
+ metadata.gz: 074b5e510b6063867c2853ce75c4b016d14ed13a
4
+ data.tar.gz: 4c41de28c253b6450ceb388ea483a5916458389a
5
5
  SHA512:
6
- metadata.gz: b544a412ba98dd1885049c6d361aa62819275c4ee1b4c15da665b1b564606164aebd71607accedfcdcc008a9261fdff291275b8db296c9c938ec29560d029706
7
- data.tar.gz: 5501d2324e58622f7243b201d76906f79d2fcac4f107234c03018e30c6e94c946ee35c7f29fd3d2b42be4ae3e93d565c10d30af0ec5e33754b4a8530540e318a
6
+ metadata.gz: 635bccef1e57542ea486426fd240bc61d08aa32c482e9718639dca09f598e252cfc1635b701a9d3d359af7c1dfd6fbe17e11f899d23e17dabe5e202431df9d84
7
+ data.tar.gz: b96fab1bdfa432271738b9ad0104b3fe152464e55088428148f1fcc9b9369a818260ebd4359e11be677a88351806f0c397e6b75571eaff6eb9391db5dcd2fe1f
data/README.md CHANGED
@@ -47,6 +47,16 @@ And then execute:
47
47
  ```
48
48
  defaults to: `Rails.application.class.parent.to_s.underscore`
49
49
 
50
+ 4. To separately control the Sidekiq logging level:
51
+
52
+ ```ruby
53
+ # config/environments/production.rb
54
+ MyApp::Application.configure do
55
+ config.applicaster_logger.sidekiq_log_level = Logger::ERROR # Logger::DEBUG etc..
56
+ end
57
+ ```
58
+ defaults to `applicaster_logger.level`
59
+
50
60
  ## Contributing
51
61
 
52
62
  1. Fork it
@@ -1,5 +1,5 @@
1
1
  module Applicaster
2
2
  module Logger
3
- VERSION = "0.6.5"
3
+ VERSION = "0.6.6"
4
4
  end
5
5
  end
@@ -65,7 +65,7 @@ module Applicaster
65
65
  begin
66
66
  applicaster_logger = ::Rails.application.config.applicaster_logger
67
67
  logger = LogStashLogger.new(applicaster_logger.logstash_config)
68
- logger.level = applicaster_logger.level
68
+ logger.level = applicaster_logger.sidekiq_log_level || applicaster_logger.level
69
69
  logger.formatter = Applicaster::Logger::Formatter.new(facility: "sidekiq")
70
70
  logger
71
71
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: applicaster-logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vitaly Gorodetsky
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2017-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstash-logger
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  requirements: []
108
108
  rubyforge_project:
109
- rubygems_version: 2.2.3
109
+ rubygems_version: 2.5.1
110
110
  signing_key:
111
111
  specification_version: 4
112
112
  summary: Configures loggers to send logs to logstash