Open rwarnung opened 1 month ago
Thanks for the report -- it was a scoping issue in some of the helper functions. the above commit should fix it, but I'd appreciate if you can check.
@daroczig Hi, thank you for looking into that quickly. I reinstalled from the dev version from github using emotes::install_github('daroczig/logger')
. However, the error ist still the same ... Is there any further information that I can provide?
Hm, there was an update in the logger
call as well that I removed last minute .. looking into it, thanks for reporting back.
appender_file does not find the log file when called from within a function
Reproducible example The following code prepares logging to the console and logging to a file.
I want to call that function with
I face 2 interesting issues:
logger::log_with_separator("start calculation")
If I run the code without the function, then the logging works:
I have discussed this here on stackoverflow.
The solutions are:
my_logfile <- tempfile()
do.call
:logger::log_appender(do.call("appender_file", list(my_logfile)), index = 1)