Sets up default logging. Usage of logging is currently being explored as the current setup cannot log stan errors or progress.
Usage
setup_default_logging(
logs = tempdir(check = TRUE),
mirror_epinow = FALSE,
target_date = NULL
)
Arguments
- logs
Character path indicating the target folder in which to store log information. Defaults to the temporary directory if not specified. Default logging can be disabled if
logs
is set to NULL. If specifying a custom logging setup then the code forsetup_default_logging()
and thesetup_logging()
function are a sensible place to start.- mirror_epinow
Logical, defaults to FALSE. Should internal logging be returned from
epinow()
to the console.- target_date
Date, defaults to maximum found in the data if not specified.
Examples
setup_default_logging()
#> Logging threshold set at INFO for the EpiNow2 logger
#> Writing EpiNow2 logs to the console and: /tmp/RtmpAGI81q/regional-epinow/latest.log
#> Logging threshold set at INFO for the EpiNow2.epinow logger
#> Writing EpiNow2.epinow logs to: /tmp/RtmpAGI81q/epinow/latest.log