Skip to content

Commit 55f8f63

Browse files
committed
Documment config.log_formatter added on 51aeae9
[ci skip]
1 parent 424d840 commit 55f8f63

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

guides/source/configuring.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ numbers. New applications filter out passwords by adding the following `config.f
103103
104104
* `config.force_ssl` forces all requests to be under HTTPS protocol by using `ActionDispatch::SSL` middleware.
105105
106+
* `config.log_formatter` defines the formatter of the Rails logger. This option defaults to a instance of `ActiveSupport::Logger::SimpleFormatter` for all modes except production, where it defaults to `Logger::Formatter`.
107+
106108
* `config.log_level` defines the verbosity of the Rails logger. This option defaults to `:debug` for all modes except production, where it defaults to `:info`.
107109
108110
* `config.log_tags` accepts a list of methods that respond to `request` object. 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.

0 commit comments

Comments
 (0)