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 +4 -4
- data/README.md +10 -0
- data/lib/applicaster/logger/version.rb +1 -1
- data/lib/applicaster/sidekiq/middleware.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 074b5e510b6063867c2853ce75c4b016d14ed13a
|
4
|
+
data.tar.gz: 4c41de28c253b6450ceb388ea483a5916458389a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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.
|
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:
|
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.
|
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
|