Closed MSHelm closed 1 month ago
Could you please test with the main
branch? A fix was just published for #157 with a very similar issue.
@daroczig The issue unfortunately still exists, with the same error. As a workaround I am currently using the following snippet, which works as intended. Maybe that helps for debugging:
my_log_separator <- function() {
logger::log_info("{paste0(rep('=', 80), collapse = '')}")
}
Hi,
I started using logger for logging with my shiny app. It works great when logging to the console, but when logging to a file I have some troubles with
log_separator
. My intended behavior is: The user can selected some inputs (x and y in below examples). Once both are selected I want to start logging to a new file. When the user selects a new combination I want to start a new file. I.e. for every valid selection I want to have a separate log file with all all steps done for it.Below example works completely fine when logging to console. But as soon as I switch to logging to file, the logging only runs until
log_info("This still works")
and then throws the errorWarning: Error in force: object 'my_log_path' not found
. Note that the log file is created initially and written to, only everything starting from the separator on is not logged. Removinglog_separator()
fixes the issue.I am a bit at a loss unfortunately and would appreciate any feedback on how to fix this issue. I also tried creating the log path in a separate observer but this throws the same error.
Reproducible example