module ActiveSupport::LogSubscriber::TestHelper

def set_logger(logger)

end
ActiveRecord::Base.logger = @logger
def logger

Overwrite if you use another logger in your log subscriber.
def set_logger(logger)
  ActiveSupport::LogSubscriber.logger = logger
end