Skip to content

Instantly share code, notes, and snippets.

@brianr
Last active August 29, 2015 14:03
Show Gist options
  • Save brianr/d0d986ae617f1b46081b to your computer and use it in GitHub Desktop.
Save brianr/d0d986ae617f1b46081b to your computer and use it in GitHub Desktop.
Disabling logging for Rollbar in Ruby
# put all of this in config/initializers/rollbar.rb
# from http://hawkins.io/2013/08/using-the-ruby-logger/
class NullLogger < Logger
def initialize(*args)
end
def add(*args, &block)
end
end
Rollbar.configure do |config|
config.access_token = 'token here'
config.logger = NullLogger.new
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment