set_logger {oaii} | R Documentation |
Set log functions used by 'oaii' package
Description
Set log functions used by 'oaii' package
Usage
set_logger(...)
Arguments
... |
parameters in form log_level = function |
Value
invisible(NULL)
Examples
## Not run:
logger <- log4r::logger("DEBUG")
log_error <- function(...) log4r::error(logger, ...)
log_warning <- function(...) log4r::warn(logger, ...)
log_info <- function(...) log4r::info(logger, ...)
log_debug <- function(...) log4r::debug(logger, ...)
oaii::set_logger(
error = log_error,
warning = log_warning,
info = log_info,
debug = log_debug
)
## End(Not run)
[Package oaii version 0.5.0 Index]