R/log-config.R

Defines functions .confLog

# config for logging DR2S
.confLog <- function(outdir, logName = "info"){
  stopifnot(requireNamespace("futile.logger", quietly = TRUE))
  futile.logger::flog.appender(futile.logger::appender.tee(
    file.path(outdir, "DR2S_run." %<<% logName)),
    logName)
}
DKMS-LSL/dr2s documentation built on March 14, 2021, 2:46 p.m.