mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip]Add info for specifying logger in different envrionments.
refer2dc3e81aea
,56ca2061df
This commit is contained in:
parent
0d37f122fc
commit
3edab2a56b
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ It can also be useful to save information to log files at runtime. Rails maintai
|
||||||
|
|
||||||
Rails makes use of the `ActiveSupport::Logger` class to write log information. Other loggers, such as `Log4r`, may also be substituted.
|
Rails makes use of the `ActiveSupport::Logger` class to write log information. Other loggers, such as `Log4r`, may also be substituted.
|
||||||
|
|
||||||
You can specify an alternative logger in `config/application.rb`, for example:
|
You can specify an alternative logger in `config/application.rb` or any other environment file, for example:
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
config.logger = Logger.new(STDOUT)
|
config.logger = Logger.new(STDOUT)
|
||||||
|
|
Loading…
Reference in a new issue