1
0
Fork 0
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.

refer 2dc3e81aea, 56ca2061df
This commit is contained in:
Kuldeep Aggarwal 2016-02-27 14:52:36 +05:30
parent 0d37f122fc
commit 3edab2a56b

View file

@ -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)