If you need to make sure that all logging events are written then call the LogManager.Shutdown() method. This will flush everything, but you can't log anything afterwards.
Cheers, Nicko > -----Original Message----- > From: Wanner, Nick [mailto:[EMAIL PROTECTED] > Sent: 11 February 2006 17:32 > To: [email protected] > Subject: Flushing a buffered appender > > If you have an appender buffering log events, is there a > method to flush all the buffers and send the log events. > One example of when I want to use this is when my application > closes. I want to make sure all my log messages are output > before I exit. > > thanks, > Nick >
