Package 'rollbar'

Title: Error Tracking and Logging
Description: Reports errors and messages to Rollbar, the error tracking platform <https://rollbar.com>.
Authors: Andrew Kane [aut, cre]
Maintainer: Andrew Kane <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2024-11-19 06:26:15 UTC
Source: https://github.com/ankane/rollbar-r

Help Index


Attach the global error handler

Description

Attach the global error handler

Usage

rollbar.attach()

Configure the library

Description

Configure the library

Usage

rollbar.configure(access_token = NULL, env = NULL, root = NULL)

Arguments

access_token

Access token from your Rollbar project

env

Environment name. Any string up to 255 chars is OK. For best results, use "production" for your production environment.

root

Absolute path to the root of your application, not including the final /


Report critical errors

Description

Report critical errors

Usage

rollbar.critical(message, extra = NULL)

Arguments

message

The message or error

extra

Extra data


Report debug messages

Description

Report debug messages

Usage

rollbar.debug(message, extra = NULL)

Arguments

message

The message or error

extra

Extra data


Report errors

Description

Report errors

Usage

rollbar.error(message, extra = NULL)

Arguments

message

The message or error

extra

Extra data


Report info messages

Description

Report info messages

Usage

rollbar.info(message, extra = NULL)

Arguments

message

The message or error

extra

Extra data

Examples

rollbar.info("Job successful")
rollbar.info("Job successful", list(job_id=123, awesome="yes"))

Report messages

Description

Report messages

Usage

rollbar.log(level, message, extra = NULL)

Arguments

level

The "error" level

message

The message or error

extra

Extra data

Examples

rollbar.log("info", "Job successful")
rollbar.log("info", "Job successful", list(job_id=123, awesome="yes"))

Report warnings

Description

Report warnings

Usage

rollbar.warning(message, extra = NULL)

Arguments

message

The message or error

extra

Extra data