This function initializes the log directory for the session. It creates a new directory if it does not exist.
Examples
SE <- as.environment(list(session = list(token = "asdf")))
init_log_dir(SE)
#> 2024-08-18 12:17:19.15 Start: init_log_dir
#> 2024-08-18 12:17:19.15 Logdir: /tmp/RtmpYdhVel/FastRet/asdf
dir.exists(SE$logdir)
#> [1] TRUE