Update logging.md

This commit is contained in:
MSathieu 2017-01-17 17:43:22 +01:00 committed by GitHub
parent 93ca27fe44
commit 68f8ebedf4

View File

@ -12,3 +12,9 @@ You may customize the logger in an initializer, for example:
```ruby ```ruby
ActiveModelSerializers.logger = Logger.new(STDOUT) ActiveModelSerializers.logger = Logger.new(STDOUT)
``` ```
You can also disable the logger, just put this in `config/application.rb`:
```ruby
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
```