diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-10-03 16:45:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 16:45:53 -0400 |
commit | ebf98df9fb705738ece08e3182d41e6f604be491 (patch) | |
tree | b9bf196968abd893ebba3a01eb55a406a32a8d88 /guides/source | |
parent | f0e9a8987329bb848b712044942160a3a3468343 (diff) | |
parent | 05ad44eb89047ac13e31149fa6cbc1459c5545a9 (diff) | |
download | rails-ebf98df9fb705738ece08e3182d41e6f604be491.tar.gz rails-ebf98df9fb705738ece08e3182d41e6f604be491.tar.bz2 rails-ebf98df9fb705738ece08e3182d41e6f604be491.zip |
Merge pull request #34055 from Edouard-chin/ec-logger-fix
Fix the LoggerSilence to work as described:
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/configuring.md | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md index d23af2ca57..812565b207 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -119,11 +119,10 @@ defaults to `:debug` for all environments. The available log levels are: `:debug * `config.logger` is the logger that will be used for `Rails.logger` and any related Rails logging such as `ActiveRecord::Base.logger`. It defaults to an instance of `ActiveSupport::TaggedLogging` that wraps an instance of `ActiveSupport::Logger` which outputs a log to the `log/` directory. You can supply a custom logger, to get full compatibility you must follow these guidelines: * To support a formatter, you must manually assign a formatter from the `config.log_formatter` value to the logger. * To support tagged logs, the log instance must be wrapped with `ActiveSupport::TaggedLogging`. - * To support silencing, the logger must include `ActiveSupport::LoggerSilence` and `ActiveSupport::LoggerThreadSafeLevel` modules. The `ActiveSupport::Logger` class already includes these modules. + * To support silencing, the logger must include `ActiveSupport::LoggerSilence` module. The `ActiveSupport::Logger` class already includes these modules. ```ruby class MyLogger < ::Logger - include ActiveSupport::LoggerThreadSafeLevel include ActiveSupport::LoggerSilence end |