mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
13 lines
334 B
Markdown
13 lines
334 B
Markdown
# Logging
|
|
|
|
If we are using ActiveModel::Serializers on Rails app by default the `Rails.logger` will be used.
|
|
|
|
On a non Rails enviroment by default the `ActiveSupport::TaggedLogging` will be
|
|
used.
|
|
|
|
If we need to customize the logger we can define this in an initializer:
|
|
|
|
```ruby
|
|
ActiveModelSerializers.logger = Logger.new(STDOUT)
|
|
```
|