Mark, Your 4 config files are being loaded into the same space and they are being merged together as they are loaded. As they are watching their source files they are also being reloaded in unpredictable orders.
As a first option can you try removing all the <appender-ref> elements from the <root> element in all of your config files. Is your intention to have completely separate logging configurations for each or your dlls? If so you can specify a named log4net repository for each assembly. Add the RepositoryAttribute to each assembly with a different name: [assembly: log4net.Config.Repository("assembly-name")] Cheers, Nicko > -----Original Message----- > From: Kremer, Mark [mailto:[EMAIL PROTECTED] > Sent: 14 June 2005 17:33 > To: Log4NET User > Subject: RE: 1.2.9 - Attempted to append to closed appender named... > > In the constructor of each, I am calling: > > XmlConfigurator.ConfigureAndWatch(new > System.IO.FileInfo(@"C:\arc\sample > clients\arc_prototype\form1_log_config.xml")); > > with the file being different for each. > > I am not calling LogManager.Shutdown() anywhere in the solution. > > The ERROR messages are printed during runtime, as each dll is > tyring to log > > -----Original Message----- > From: Nicko Cadell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 14, 2005 10:14 AM > To: Log4NET User > Subject: RE: 1.2.9 - Attempted to append to closed appender named... > > > Mark, > > How are you loading the config files for the exe and dlls? > Are you calling the XmlConfigurator programmatically? And if so when? > Are you explicitly calling the LogManager.Shutdown method at > any time? > Are the log4net:ERROR messages printed at or just before program exit? > > Nicko > > > -----Original Message----- > > From: Kremer, Mark [mailto:[EMAIL PROTECTED] > > Sent: 14 June 2005 16:07 > > To: log4net-user@logging.apache.org > > Subject: FW: 1.2.9 - Attempted to append to closed appender named... > > > > Here are the config files and the output from having internal > > debugging enabled. > > > > -----Original Message----- > > From: Kremer, Mark [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 13, 2005 1:35 PM > > To: Log4NET User > > Subject: RE: 1.2.9 - Attempted to append to closed appender named... > > > > > > Here's the config file for the exe (form1_log_config) and the three > > dlls. > > > > -----Original Message----- > > From: Nicko Cadell [mailto:[EMAIL PROTECTED] > > Sent: Monday, June 13, 2005 1:29 PM > > To: Log4NET User > > Subject: RE: 1.2.9 - Attempted to append to closed appender named... > > > > > > Mark, > > > > Can you send over your config file, and also can you reproduce this > > situation with internal logging enabled: > > > > http://logging.apache.org/log4net/release/faq.html#internalDebug > > > > Cheers, > > > > Nicko > > > > > -----Original Message----- > > > From: Kremer, Mark [mailto:[EMAIL PROTECTED] > > > Sent: 13 June 2005 20:06 > > > To: log4net-user@logging.apache.org > > > Subject: 1.2.9 - Attempted to append to closed appender named... > > > > > > I am testing a simple app that consists of one exe and 3 > dlls. I am > > > trying to set it up so that each project (the exe and each > > dll) have > > > their own unique static logger, config file, and output > > file. When I > > > run, I get the desired logging in the desired locations > for the exe > > > and the first dll that is called. But for the second and > > third dlls, I > > > get the following errors. Any ideas as to what is causing this? > > > > > > Thanks! > > > Mark > > > > > > log4net:ERROR [ConsoleAppender] Attempted to append to > > closed appender > > > named [PerformanceConsole]. > > > log4net:ERROR [RollingFileAppender] Attempted to append to closed > > > appender named [PerformanceRollingFile]. > > > log4net:ERROR [ConsoleAppender] Attempted to append to > > closed appender > > > named [LoggingConsole]. > > > log4net:ERROR [RollingFileAppender] Attempted to append to closed > > > appender named [LoggingRollingFile]. > > > > > > > > > __________________________________________________ > > > > > > Mark Kremer > > > User Interface Specialist > > > ZOLL Data Systems (formerly Pinpoint Technologies) > > > > > > > > > > > > 12202 Airport Way, Suite 300 > > > Broomfield, Colorado 80021 > > > > > > > > > > > > O (303) 801-1833 > > > F (303) 801-0001 > > > www.zolldata.com > > > > > > > > >