Charles, This depends on how you have configured log4net. You may need to mail your log4net configuration to get a more detailed analysis.
If you are just using a FileAppender with a PatternLayout with a Footer specified then the Footer will only be written when the appender is closed. log4net hooks the application unload event and calls LogManager.Shutdown. There are circumstances outside the control of log4net that can prevent the application unload event handler from running or completing. If you can explicitly call the LogManager.Shutdown() method during you application exit then all output should be written correctly. Cheers, Nicko > -----Original Message----- > From: Charles Johnson [mailto:[EMAIL PROTECTED] > Sent: 22 August 2005 12:14 > To: [email protected] > Subject: Flushing? > > I seem to be getting irregular behaviour from my appender > (footer not appearing etc.). I suspect the stream is not > being flushed properly. Is there any way i can force this? > > If another explanation is possible, please do say. > > CJ > > > >
