R/log.r

Defines functions set.log.level

Documented in set.log.level

#' Set the level of logger
#' @export set.log.level
#' @param level log level, setting the level to futile.logger::DEBUG provides most details log, whereas setting the level to futile.logger::WARN provides least details log
#' @return None
#' @examples
#' \donttest{
#' set.log.level(futile.logger::DEBUG)
#' set.log.level(futile.logger::INFO)
#' set.log.level(futile.logger::WARN)
#' }
set.log.level <- function(level) {
  futile.logger::flog.threshold(level)
}

Try the CSUV package in your browser

Any scripts or data that you put into this service are public.

CSUV documentation built on Oct. 23, 2020, 5:49 p.m.