class method self.colorize_logging

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v3.0.20

Available in: v2.3.18 v3.0.20

Determines whether to use ANSI codes to colorize the logging statements committed by the connection adapter. These colors make it much easier to overview things during debugging (when used through a reader like tail and on a black background), but may complicate matters if you use software like syslog. This is true, by default.

Source
# File activerecord/lib/active_record/base.rb, line 491
    cattr_accessor :colorize_logging, :instance_writer => false

Defined in activerecord/lib/active_record/base.rb line 491 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::Base

Type at least 2 characters to search.

↑↓ navigate · open · esc close