{% load i18n %}
{% blocktrans with 'https://r-forge.r-project.org/projects/logging/' as link %}Start by installing r-logging:{% endblocktrans %}
{% trans "Load the logging package:" %}
library(logging) library(logging.handlers)
{% trans "Create a Sentry handler and add it to a logger:" %}
rl <- getLogger() # for example the root logger rl$addHandler(sentryHandler, dsn='{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'')
{% trans "Send events via the standard logging interface:" %}
sol <- getLogger('some.other.logger') sol$error(MESSAGE) sol$warn(MESSAGE) sol$info(MESSAGE) sol$debug(MESSAGE)
{% blocktrans with 'http://logging.r-forge.r-project.org/' as link %}For more information on other uses of the logging package, see the documentation for r-logging.{% endblocktrans %}