Last active
August 29, 2015 14:03
-
-
Save brianr/d0d986ae617f1b46081b to your computer and use it in GitHub Desktop.
Disabling logging for Rollbar in Ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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