class Rollbar::Logger

This class provides logger interface that can be used to replace the application logger and send all the log messages to Rollbar

Usage: require ‘rollbar/logger’ logger = Rollbar::Logger.new logger.error(‘Error processing purchase’)

If using Rails, you can extend the Rails logger so messages are logged normally and also to Rollbar:

Rails.logger.extend(ActiveSupport::Logger.broadcast(Rollbar::Logger.new))