log_event() has a notion of default logdir, so you don't need to specify it
at every call. These functions allow you to query and the current logdir.
Usage
get_default_logdir()
set_default_logdir(logdir = "logs")
with_logdir(logdir, code)
local_logdir(logdir, .env = parent.frame())Arguments
- logdir
The
logdirthat you want to set as default.- code
Expressions that will be evaluated in a context with the
newlogdiras the defaultlogdir.- .env
Environment that controls scope of changes. For expert use only.