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 |
Attach the global error handler
rollbar.attach()
rollbar.attach()
Configure the library
rollbar.configure(access_token = NULL, env = NULL, root = NULL)
rollbar.configure(access_token = NULL, env = NULL, root = NULL)
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
rollbar.critical(message, extra = NULL)
rollbar.critical(message, extra = NULL)
message |
The message or error |
extra |
Extra data |
Report debug messages
rollbar.debug(message, extra = NULL)
rollbar.debug(message, extra = NULL)
message |
The message or error |
extra |
Extra data |
Report errors
rollbar.error(message, extra = NULL)
rollbar.error(message, extra = NULL)
message |
The message or error |
extra |
Extra data |
Report info messages
rollbar.info(message, extra = NULL)
rollbar.info(message, extra = NULL)
message |
The message or error |
extra |
Extra data |
rollbar.info("Job successful") rollbar.info("Job successful", list(job_id=123, awesome="yes"))
rollbar.info("Job successful") rollbar.info("Job successful", list(job_id=123, awesome="yes"))
Report messages
rollbar.log(level, message, extra = NULL)
rollbar.log(level, message, extra = NULL)
level |
The "error" level |
message |
The message or error |
extra |
Extra data |
rollbar.log("info", "Job successful") rollbar.log("info", "Job successful", list(job_id=123, awesome="yes"))
rollbar.log("info", "Job successful") rollbar.log("info", "Job successful", list(job_id=123, awesome="yes"))
Report warnings
rollbar.warning(message, extra = NULL)
rollbar.warning(message, extra = NULL)
message |
The message or error |
extra |
Extra data |