class method
self.logger
Ruby on Rails edge
Since v4.0.13Accepts a logger conforming to the interface of Log4r or the default Ruby Logger class, which is then passed on to any new database connections made. You can retrieve this logger by calling logger on either an Active Record model class or an Active Record model instance.
Source
# File activerecord/lib/active_record/core.rb, line 23
class_attribute :logger, instance_writer: false
Defined in activerecord/lib/active_record/core.rb line 23
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Core