Skip to content

Commit 68f8ebe

Browse files
authored
Update logging.md
1 parent 93ca27f commit 68f8ebe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/general/logging.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,9 @@ You may customize the logger in an initializer, for example:
1212
```ruby
1313
ActiveModelSerializers.logger = Logger.new(STDOUT)
1414
```
15+
16+
You can also disable the logger, just put this in `config/application.rb`:
17+
18+
```ruby
19+
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)
20+
```

0 commit comments

Comments
 (0)