Learn R Programming

logger (version 0.2.2)

log_errors: Injects a logger call to standard errors

Description

This function uses trace to add a log_error function call when stop is called to log the error messages with the logger layout and appender.

Usage

log_errors()

Arguments

Examples

Run this code
if (FALSE) {
log_errors()
stop('foobar')
}

Run the code above in your browser using DataLab