Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Documment config.log_formatter added on 51aeae9

[ci skip]
  • Loading branch information...
commit 94942274c7857b5bac524b96e5d2a488d0e8dcee 1 parent 47a777d
Rafael Mendonça França rafaelfranca authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  guides/source/configuring.md
2  guides/source/configuring.md
View
@@ -101,6 +101,8 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
* `config.force_ssl` forces all requests to be under HTTPS protocol by using `ActionDispatch::SSL` middleware.
+* `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`.
+
* `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`.
* `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.
Please sign in to comment.
Something went wrong with that request. Please try again.