This commit is contained in:
jules 2015-10-23 18:09:01 +02:00
parent 2a81b65de6
commit c582617209

View file

@ -86,13 +86,13 @@ and then add an initializer in your Rails project:
The idea come from here: https://gist.github.com/teamon/e8ae16ffb0cb447e5b49
There's some advantage to use this method:
There's some advantages to use this method:
- You could use a logger that does not implement the ```formatter=```.
Defaults Rails 3 (ActiveSupport::BufferedLogger) does not implement it.
The Logging gem (https://github.com/TwP/logging) does not implement it neither
The Logging gem (https://github.com/TwP/logging) does not implement it neither.
- If you use a logger that already format logs (as the Logging gem), the logs will be formatted by your logger
- If you use a logger that already format logs (as the Logging gem), the logs will be formatted by your logger.
### Logging exceptions