Skip to content

Instantly share code, notes, and snippets.

@rnaveiras
Forked from brianr/rollbar.rb
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rnaveiras/c8add7e2f4775f80daf8 to your computer and use it in GitHub Desktop.
Save rnaveiras/c8add7e2f4775f80daf8 to your computer and use it in GitHub Desktop.
# 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