Set the application-wide log threshold
app_set_log_threshold.RdA thin wrapper around logger::log_threshold() that applies the chosen
level to every logger namespace used by tooltipexplorer.
Usage
app_set_log_threshold(level = logger::INFO)Arguments
- level
A
loggerlog-level object, e.g. logger::DEBUG, logger::INFO (default), logger::WARN.
Details
Log levels from lowest to highest verbosity:
TRACE, DEBUG, INFO, SUCCESS, WARN, ERROR, FATAL.
The default threshold is INFO — TRACE and DEBUG lines are silent
in production.
Internally, lapply() iterates over the namespace vector and calls
logger::log_threshold() for each entry. The return value of lapply()
is discarded; only level is returned (invisibly).