mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
533 B
533 B
Logging
The default logger in a Rails application will be Rails.logger.
When there is no Rails.logger, the default logger is an instance of
ActiveSupport::TaggedLogging logging to STDOUT.
You may customize the logger in an initializer, for example:
ActiveModelSerializers.logger = Logger.new(STDOUT)
You can also disable the logger, just put this in config/application.rb:
ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT)