log_warnings: Injects a logger call to standard warnings

Description Usage Examples

View source: R/hooks.R

Description

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

Usage

1

Examples

1
2
3
4
5
## Not run: 
log_warnings()
for (i in 1:5) { Sys.sleep(runif(1)); warning(i) }

## End(Not run)

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