Skip to content
This repository
Browse code

Merge pull request #8609 from senny/buffered_logger_documentation

replace AS::BufferedLogger doc mentions with AS::Logger
  • Loading branch information...
commit ea6cddd80dd2b029ffc7a74fe1a799cade0552c9 2 parents 95fa0e6 + 6c8a48e
Guillermo Iguaran guilleiguaran authored
6 guides/source/configuring.md
Source Rendered
@@ -105,7 +105,7 @@ These configuration methods are to be called on a `Rails::Railtie` object, such
105 105
106 106 * `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.
107 107
108   -* `config.logger` accepts a logger conforming to the interface of Log4r or the default Ruby `Logger` class. Defaults to an instance of `ActiveSupport::BufferedLogger`, with auto flushing off in production mode.
  108 +* `config.logger` accepts a logger conforming to the interface of Log4r or the default Ruby `Logger` class. Defaults to an instance of `ActiveSupport::Logger`, with auto flushing off in production mode.
109 109
110 110 * `config.middleware` allows you to configure the application's middleware. This is covered in depth in the [Configuring Middleware](#configuring-middleware) section below.
111 111
@@ -437,7 +437,7 @@ There are a few configuration options available in Active Support:
437 437
438 438 * `config.active_support.use_standard_json_time_format` enables or disables serializing dates to ISO 8601 format. Defaults to `true`.
439 439
440   -* `ActiveSupport::BufferedLogger.silencer` is set to `false` to disable the ability to silence logging in a block. The default is `true`.
  440 +* `ActiveSupport::Logger.silencer` is set to `false` to disable the ability to silence logging in a block. The default is `true`.
441 441
442 442 * `ActiveSupport::Cache::Store.logger` specifies the logger to use within cache store operations.
443 443
@@ -637,7 +637,7 @@ Below is a comprehensive list of all the initializers found in Rails in the orde
637 637
638 638 * `load_active_support` Requires `active_support/dependencies` which sets up the basis for Active Support. Optionally requires `active_support/all` if `config.active_support.bare` is un-truthful, which is the default.
639 639
640   -* `initialize_logger` Initializes the logger (an `ActiveSupport::BufferedLogger` object) for the application and makes it accessible at `Rails.logger`, provided that no initializer inserted before this point has defined `Rails.logger`.
  640 +* `initialize_logger` Initializes the logger (an `ActiveSupport::Logger` object) for the application and makes it accessible at `Rails.logger`, provided that no initializer inserted before this point has defined `Rails.logger`.
641 641
642 642 * `initialize_cache` If `Rails.cache` isn't set yet, initializes the cache by referencing the value in `config.cache_store` and stores the outcome as `Rails.cache`. If this object responds to the `middleware` method, its middleware is inserted before `Rack::Runtime` in the middleware stack.
643 643
2  guides/source/debugging_rails_applications.md
Source Rendered
@@ -107,7 +107,7 @@ It can also be useful to save information to log files at runtime. Rails maintai
107 107
108 108 ### What is the Logger?
109 109
110   -Rails makes use of the `ActiveSupport::BufferedLogger` class to write log information. You can also substitute another logger such as `Log4r` if you wish.
  110 +Rails makes use of the `ActiveSupport::Logger` class to write log information. You can also substitute another logger such as `Log4r` if you wish.
111 111
112 112 You can specify an alternative logger in your `environment.rb` or any environment file:
113 113
2  guides/source/performance_testing.md
Source Rendered
@@ -415,7 +415,7 @@ tests will set the following configuration parameters:
415 415 ```bash
416 416 ActionController::Base.perform_caching = true
417 417 ActiveSupport::Dependencies.mechanism = :require
418   -Rails.logger.level = ActiveSupport::BufferedLogger::INFO
  418 +Rails.logger.level = ActiveSupport::Logger::INFO
419 419 ```
420 420
421 421 As `ActionController::Base.perform_caching` is set to `true`, performance tests

0 comments on commit ea6cddd

Please sign in to comment.
Something went wrong with that request. Please try again.