1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hooks.R
\name{log_errors}
\alias{log_errors}
\title{Injects a logger call to standard errors}
\usage{
log_errors(muffle = getOption("logger_muffle_errors", FALSE))
}
\arguments{
\item{muffle}{if TRUE, the error is not thrown after being logged}
}
\description{
This function uses \code{trace} to add a \code{log_error} function call when
\code{stop} is called to log the error messages with the \code{logger} layout
and appender.
}
\examples{
\dontrun{
log_errors()
stop("foobar")
}
}
|