> 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 --Chris -- Chris Jerdonek Software Developer P: (415) 357-3618 Ext. 1357 Granicus, Inc. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, May 19, 2008 4:24 AM To: log4net-user@logging.apache.org Subject: how to log to differnent textfiles? Hello! I'm quite new in using log4net. :-) And perhaps you have a quick and easy solution for my problem. I have an windows application which can be started more than once. Inside the config file I can set the logfile and path. 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? Thank you for your help. best regards, Mad