Class: ActionDispatch::LogSubscriber
Do not use. This class is for internal use only.
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
|
Class Chain:
|
|
|
Instance Chain:
|
|
| Inherits: |
ActiveSupport::EventReporter::LogSubscriber
|
| Defined in: | actionpack/lib/action_dispatch/log_subscriber.rb |
Constant Summary
::ActiveSupport::ColorizeLogging - Included
BLACK, BLUE, CYAN, GREEN, MAGENTA, MODES, RED, WHITE, YELLOW
::ActiveSupport::EventReporter::LogSubscriber - Inherited
Class Attribute Summary
::ActiveSupport::EventReporter::LogSubscriber - Inherited
Class Method Summary
::ActiveSupport::EventReporter::LogSubscriber - Inherited
Instance Attribute Summary
::ActiveSupport::EventReporter::LogSubscriber - Inherited
Instance Method Summary
::ActiveSupport::EventReporter::LogSubscriber - Inherited
::ActiveSupport::ColorizeLogging - Included
| #color | Set color by using a symbol or one of the defined constants. |
| #colorize_logging, #debug, #error, #fatal, #info, #mode_from, #unknown, #warn | |
Class Attribute Details
.backtrace_cleaner (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 5
class_attribute :backtrace_cleaner, default: ActiveSupport::BacktraceCleaner.new
.backtrace_cleaner? ⇒ Boolean (rw)
[ GitHub ]
# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 5
class_attribute :backtrace_cleaner, default: ActiveSupport::BacktraceCleaner.new
Class Method Details
.default_logger
[ GitHub ]# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 30
def self.default_logger ActionController::Base.logger end
Instance Attribute Details
#backtrace_cleaner (rw)
[ GitHub ]# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 5
class_attribute :backtrace_cleaner, default: ActiveSupport::BacktraceCleaner.new
#backtrace_cleaner? ⇒ Boolean (rw)
[ GitHub ]
# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 5
class_attribute :backtrace_cleaner, default: ActiveSupport::BacktraceCleaner.new
Instance Method Details
#redirect(event)
[ GitHub ]# File 'actionpack/lib/action_dispatch/log_subscriber.rb', line 9
def redirect(event) payload = event[:payload] info { "Redirected to #{payload[:location]}" } if ActionDispatch.verbose_redirect_logs info { "↳ #{payload[:source_location]}" } end info do status = payload[:status] status_name = payload[:status_name] = +"Completed #{status} #{status_name} in #{payload[:duration_ms].round}ms" << "\n\n" if defined?(Rails.env) && Rails.env.development? end end