If true
, we will send messages. We must get the user's permission first!
The Rollbar client instance we use to communicate.
Log an error with Rollbar
A message about what we were doing when the error happened
Additional items in the payload
The LogResult if we are enabled. null
otherwise.
Log an exception with Rollbar.
A message about what we were doing when the exception happened
The exception object
Additional items in the payload
The LogResult if we are enabled. null
otherwise.
Invoke a synchronous function, and catch and log any unhandled exceptions
Message about what we are doing
Additional data to log
The block to call
Invoke an asynchronous function, and catch any promise rejects.
Message about what we are doing
Additional data to log
The block to call
Request permission to use Rollbar from the user. This will show a message box at the top of the window on first permission request.
Extension context, where we use a memento to remember our permission
Update the content of the Rollbar payload with additional context information.
Daya to merge into the payload
The payload to send with any messages. Can be updated via updatePayload
.
Generated using TypeDoc
The wrapper around Rollbar. Presents a nice functional API.