mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Update logging.md
This commit is contained in:
parent
93ca27fe44
commit
68f8ebedf4
@ -12,3 +12,9 @@ You may customize the logger in an initializer, for example:
|
||||
```ruby
|
||||
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)
|
||||
```
|
||||
|
||||
Loading…
Reference in New Issue
Block a user