How to set logger::log_threshold when level is provided as string or something else (int?)?
Real life case: I want to set threshold level in parameterized Rmarkdowns (as one of parameters). So I was thinking about something like rmarkdown::render("x.Rmd", params = list(my_level="TRACE")) but I don't know what to do with this string. There is no as.loglevel function.
How to set
logger::log_threshold
when level is provided as string or something else (int?)?Real life case: I want to set threshold level in parameterized Rmarkdowns (as one of parameters). So I was thinking about something like
rmarkdown::render("x.Rmd", params = list(my_level="TRACE"))
but I don't know what to do with this string. There is noas.loglevel
function.