Yes the AdoNetAppender will write buffered events to the database during Shutdown.
When the log4net Shutdown method is called all the appenders are asked to Close. The Appenders based on the BufferingAppenderSkeleton, including the AdoNetAppender, will attempt to flush their buffers to their backing store. Log4net does register for the ProcessExit event and will call Shutdown when the application is exiting, however the runtime does not wait for the event handler to complete which may cause data loss. To ensure that the buffered events are delivered you should call the LogManager.Shutdown() method explicitly during your application shutdown. Nicko > -----Original Message----- > From: M. d'Entremont [mailto:[EMAIL PROTECTED] > Sent: 05 January 2005 23:12 > To: Log4NET User > Subject: shutdown and appender sync > > Am I correct in assuming shutdown asks all the appenders to > sync with the data repositories, i.e. in the ADONetAppender I > have the buffer size set to 50. If there are any messages to > be log that are not yet written to the db the appender be > asked to write them? > > Marc > >
