log_errors: Injects a logger call to standard errors

Description Usage Examples

View source: R/hooks.R

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

1

Examples

1
2
3
4
5
## Not run: 
log_errors()
stop('foobar')

## End(Not run)

logger documentation built on Oct. 19, 2021, 9:07 a.m.