Change the logging directory at runtime
Subject: Change the logging directory at runtime
Newsgroups: gmane.comp.log.log4net.user
Date: 2008-07-29 18:58:48 GMT
I'm planning to use log4net to write events in a removable usb memory.
As you can suppose I have problems setting the right path for the logging file in the removable drive, there is no warranty about the drive where the memory will be mounted each time; and the application, depending on its state, it can be using different removable memories at different times.
I wonder if there is any way of setting the file path of the FileAppender or RollingFileAppender at runtime.
Thanks in advance,
Freddy.
RSS Feed