logstop 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +3 -5
- data/lib/logstop.rb +4 -0
- data/lib/logstop/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4a7ae0dfced4f2fd89ef52da3c7560b714161722f9e6642628d2bc5c6dc7bd
|
4
|
+
data.tar.gz: 8d96132e4c979d29ffec7572e9947f3f2e48cd40305bbefe9b0559a371a7ed13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1eedaef8e9a44ef497585e0dfc0b7ce82b28f88066df8edb13d38b6f181966784bb582996f49f8b469bad457874083d00bfa84b7be07330aa9882c0405882af8
|
7
|
+
data.tar.gz: 4c4125427122c48e8f742e37514a25d0c61f29e36c1bc542e4a56b8f37f59e16b011b9ec609b9c735e205c211c8cf2211ddf59fe958c8d11de667a03f8f839cc
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -34,7 +34,7 @@ gem 'logstop'
|
|
34
34
|
And add it to your logger:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
|
37
|
+
Logstop.guard(logger)
|
38
38
|
```
|
39
39
|
|
40
40
|
### Rails
|
@@ -42,17 +42,15 @@ logger.formatter = Logstop::Formatter.new(logger.formatter)
|
|
42
42
|
Create `config/initializers/logstop.rb` with:
|
43
43
|
|
44
44
|
```ruby
|
45
|
-
|
45
|
+
Logstop.guard(Rails.logger)
|
46
46
|
```
|
47
47
|
|
48
|
-
**Note:** In the Rails console with the default logger, logs show up unfiltered in STDOUT, but filtered in the log file. This is fixed on master.
|
49
|
-
|
50
48
|
## Options
|
51
49
|
|
52
50
|
To scrub IP addresses, use:
|
53
51
|
|
54
52
|
```ruby
|
55
|
-
Logstop
|
53
|
+
Logstop.guard(logger, ip: true)
|
56
54
|
```
|
57
55
|
|
58
56
|
To scrub outside of logging, use:
|
data/lib/logstop.rb
CHANGED
data/lib/logstop/version.rb
CHANGED