Chris Jerdonek schrieb:
But when I start my application more than once, I receive a "file in
use" exception.  Is it possible to set the logfile path at runtime?

You can also try using a "minimal lock," which lets multiple processes
write to the same file.  Just add the following to your appender config:

<lockingModel type="log4net.Appender.FileAppender+MinimalLock" />

This is covered in the log4net config examples in the FileAppender
section:

http://logging.apache.org/log4net/release/config-examples.html
is it possible to combine this with a RollingFileAppender?

best regards,
Mad

Reply via email to