You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-user@logging.apache.org by Nicko Cadell <ni...@neoworks.com> on 2004/03/01 12:56:08 UTC

RE: Restarting after shutdown

Once a repository has been shutdown it can be reactivated simple by
reconfiguring it.

Try calling once of the log4net.Config.DOMConfigurator.Configure methods to
reconfigure log4net.

Note that while log4net is shutdown any messages logged will be discarded.

Nicko

> -----Original Message-----
> From: Ahti Hujanen [mailto:ahti.hujanen@binaryprotocol.com] 
> Sent: 26 February 2004 15:10
> To: log4net-user@logging.apache.org
> Subject: Restarting after shutdown
> 
> I'm writing an app where I'd like to mail my logs at the end 
> of each day.  The problem is that creating a MailAttachment 
> using current log file fails (I'm using the 
> RollingFileAppender).  If I shutdown the logging via 
> LogManager.Shutdown() all is well - except that I can no 
> longer log.  Is there a way to restart logging after shutting down?
>  
> Ahti Hujanen
> Binary Protocol LLC
>