active_model_serializers/docs/general/logging.md
2015-11-10 03:09:24 -06:00

334 B

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:

ActiveModelSerializers.logger = Logger.new(STDOUT)