aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/configuring.md
diff options
context:
space:
mode:
authorErol Fornoles <erol.fornoles@gmail.com>2016-04-26 22:32:28 +0800
committerErol Fornoles <erol.fornoles@gmail.com>2016-04-26 22:32:42 +0800
commit0aab9c60083082ea7ef50901e8b1c7636d03042a (patch)
tree9b9286a56930bb89cdb316fdfbcc435978d41e98 /guides/source/configuring.md
parent9d63111499164884635462bb09f5de979e7bffb9 (diff)
downloadrails-0aab9c60083082ea7ef50901e8b1c7636d03042a.tar.gz
rails-0aab9c60083082ea7ef50901e8b1c7636d03042a.tar.bz2
rails-0aab9c60083082ea7ef50901e8b1c7636d03042a.zip
Fix typo in Rails Guides [ci skip]
Diffstat (limited to 'guides/source/configuring.md')
-rw-r--r--guides/source/configuring.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.md b/guides/source/configuring.md
index 582b14e25f..57a758eea1 100644
--- a/guides/source/configuring.md
+++ b/guides/source/configuring.md
@@ -116,7 +116,7 @@ defaults to `:debug` for all environments. The available log levels are: `:debug
* `config.log_tags` accepts a list of: methods that the `request` object responds to, a `Proc` that accepts the `request` object, or something that responds to `to_s`. This makes it easy to tag log lines with debug information like subdomain and request id - both very helpful in debugging multi-user production applications.
-* `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 compatability you must follow these guidelines:
+* `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 loggs the log instance must be wrapped with `ActiveSupport::TaggedLogging`.
* To support silencing the logger must include `LoggerSilence` and `ActiveSupport::LoggerThreadSafeLevel` modules. The `ActiveSupport::Logger` class already includes these modules.