logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicko Cadell" <ni...@neoworks.com>
Subject RE: Forcing flush before killing a process
Date Mon, 10 Oct 2005 14:21:08 GMT
Call LogManger.Shutdown() that will flush all the appenders and close all the files cleanly.


Nicko

> -----Original Message-----
> From: Thibaut Barrère [mailto:thibaut.barrere@gmail.com] 
> Sent: 10 October 2005 15:19
> To: Log4NET User
> Subject: Forcing flush before killing a process
> 
> Hi,
> 
> is there some way to flush all the logs before killing the 
> process ? I'm using Environment.Exit() for last chance 
> application exit (when everything else has been tried).
> 
> I'd like to record the fact that I had to kill the process. 
> Is it doable ?
> 
> regards
> 
> Thibaut
> 
> 
> 

Mime
View raw message