class ActiveSupport::LogSubscriber

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

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