From 68f8ebedf42d3000112322760b4f0a99c09b343e Mon Sep 17 00:00:00 2001 From: MSathieu Date: Tue, 17 Jan 2017 17:43:22 +0100 Subject: [PATCH] Update logging.md --- docs/general/logging.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/general/logging.md b/docs/general/logging.md index 306bfd50..9fba8c28 100644 --- a/docs/general/logging.md +++ b/docs/general/logging.md @@ -12,3 +12,9 @@ You may customize the logger in an initializer, for example: ```ruby ActiveModelSerializers.logger = Logger.new(STDOUT) ``` + +You can also disable the logger, just put this in `config/application.rb`: + +```ruby +ActiveSupport::Notifications.unsubscribe(ActiveModelSerializers::Logging::RENDER_EVENT) +```