You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to bug you, but I can't find this in the docs ...
I have a long-running process that always logs to the console (appender_console) but occasionally jumped into some new subdirectory and I'd like it to be able to temporarily append (also) to a logfile in that subdirectory. Once that subdir's task is complete, I'd like to no longer append to that file (and never return to it).
I can add multiple appenders without problem, but without breaking into the internal namespaces environment, I don't know how to remove an appender completely.
Thoughts?
log_appender(appender_console)
log_info("normal")
log_appender(appender_file(somefile), index=2)
log_info("temporary") # goes to both the console and the file
log_appender(**DELETE**, index=2)
log_info("console only")
The text was updated successfully, but these errors were encountered:
Sorry to bug you, but I can't find this in the docs ...
I have a long-running process that always logs to the console (
appender_console
) but occasionally jumped into some new subdirectory and I'd like it to be able to temporarily append (also) to a logfile in that subdirectory. Once that subdir's task is complete, I'd like to no longer append to that file (and never return to it).I can add multiple appenders without problem, but without breaking into the internal
namespaces
environment, I don't know how to remove an appender completely.Thoughts?
The text was updated successfully, but these errors were encountered: