active_model_serializers/docs/general/logging.md
2015-12-14 14:38:29 -06:00

360 B

Back to Guides

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:

ActiveModelSerializers.logger = Logger.new(STDOUT)