Learn R Programming

logger (version 0.2.2)

log_warnings: Injects a logger call to standard warnings

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

log_warnings()

Arguments

Examples

Run this code
if (FALSE) {
log_warnings()
for (i in 1:5) { Sys.sleep(runif(1)); warning(i) }
}

Run the code above in your browser using DataLab