mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
15 lines
360 B
Markdown
15 lines
360 B
Markdown
[Back to Guides](../README.md)
|
|
|
|
# Logging
|
|
|
|
If we are using ActiveModelSerializers on a Rails app by default the `Rails.logger` will be used.
|
|
|
|
On a non Rails enviroment by default the `ActiveSupport::TaggedLogging` will be
|
|
used.
|
|
|
|
You may customize the logger we by in an initializer, for example:
|
|
|
|
```ruby
|
|
ActiveModelSerializers.logger = Logger.new(STDOUT)
|
|
```
|