R/cuml_log_levels.R

Defines functions match_cuml_log_level

match_cuml_log_level <- function(log_level = c("off", "critical", "error", "warn", "info", "debug", "trace")) {
  log_level <- match.arg(log_level)

  switch(log_level,
    off = 0L,
    critical = 1L,
    error = 2L,
    warn = 3L,
    info = 4L,
    debug = 5L,
    trace = 6L
  )
}

Try the cuml4r package in your browser

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

cuml4r documentation built on July 26, 2021, 9:06 a.m.