README.md in logstop-0.2.0 vs README.md in logstop-0.2.1
- old
+ new
@@ -35,10 +35,20 @@
```ruby
logger.formatter = Logstop::Formatter.new(logger.formatter)
```
+### Rails
+
+Create `config/initializers/logstop.rb` with:
+
+```ruby
+Rails.logger.formatter = Logstop::Formatter.new(Rails.logger.formatter)
+```
+
+**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.
+
## Options
To scrub IP addresses, use:
```ruby
@@ -54,9 +64,11 @@
## Note
This should be used in addition to `config.filtered_parameters`, not as a replacement.
To scrub existing log files, check out [scrubadub](https://github.com/datascopeanalytics/scrubadub).
+
+To anonymize IP addresses, check out [IP Anonymizer](https://github.com/ankane/ip_anonymizer).
## Resources
- [List of PII, as defined by NIST](https://en.wikipedia.org/wiki/Personally_identifiable_information#NIST_definition)