README.md in logstop-0.2.7 vs README.md in logstop-0.2.8
- old
+ new
@@ -19,11 +19,11 @@
```
User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."email" = ? [["email", "[FILTERED]"]]
```
-Works even when sensitive data is URL-encoded
+Works even when sensitive data is URL-encoded with plus encoding
[![Build Status](https://github.com/ankane/logstop/workflows/build/badge.svg?branch=master)](https://github.com/ankane/logstop/actions)
## Installation
@@ -47,11 +47,11 @@
Logstop.guard(Rails.logger)
```
## Options
-To scrub IP addresses, use:
+To scrub IP addresses (IPv4), use:
```ruby
Logstop.guard(logger, ip: true)
```
@@ -61,9 +61,21 @@
scrubber = lambda do |msg|
msg.gsub(/custom_regexp/, "[FILTERED]".freeze)
end
Logstop.guard(logger, scrubber: scrubber)
+```
+
+Disable default rules with:
+
+```ruby
+Logstop.guard(logger,
+ email: false,
+ phone: false,
+ credit_card: false,
+ ssn: false,
+ url_password: false
+)
```
To scrub outside of logging, use:
```ruby