R/log-config.R

# 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)
}
gschofl/DR2S documentation built on May 17, 2019, 8:40 a.m.