class method self.attach_to

Ruby on Rails 3.2.22.5

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.attach_to(namespace, log_subscriber=new, notifier=ActiveSupport::Notifications)

No documentation comment.

Parameters

namespace req
log_subscriber opt = new
notifier opt = ActiveSupport::Notifications
Source
# File activesupport/lib/active_support/log_subscriber.rb, line 59
      def attach_to(namespace, log_subscriber=new, notifier=ActiveSupport::Notifications)
        log_subscribers << log_subscriber
        @@flushable_loggers = nil

        log_subscriber.public_methods(false).each do |event|
          next if 'call' == event.to_s

          notifier.subscribe("#{event}.#{namespace}", log_subscriber)
        end
      end

Defined in activesupport/lib/active_support/log_subscriber.rb line 59 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveSupport::LogSubscriber

Type at least 2 characters to search.

↑↓ navigate · open · esc close