Dru,

The LogManager and LoggerManager Shutdown methods are static so changing
them to follow the IDisposable pattern does not seem the right way to
go. 

A Shutdown method is exposed by the IPlugin and ILoggerRepository
interfaces. The behaviour of this method should be similar to a Dispose
method, i.e. cleanup, free resources etc... 

The IDispose pattern is most useful in conjunction with the C# using
keyword, i.e. where the object can be created and automatically disposed
around a logical code block. The usage case for these objects within
log4net does not really match up to this, therefore I'm not too sure how
much value there would be in making this change.

If you want to discus this further, or if you have any other suggestions
or improvements you may want to post to the log4net-dev list.

Cheers,

Nicko

> -----Original Message-----
> From: Dru Sellers [mailto:[EMAIL PROTECTED] 
> Sent: 17 December 2004 22:25
> To: 'Log4NET User'
> Subject: LogManager.Shutdown
> 
> Is Shutdown the same as Dispose?
>  
> If it is what about making another method called Dispose 
> available for those people that are more .Net centric. If 
> someone really wants to they could even implement IDisposable 
> and remove the Shutdown method. But alas me thinks that might 
> break someones code. Anyways just a thought, I had never 
> noticed the shutdown method until today and just wanted to verify.
>  
> 8-)
>  
> Dru
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.817 / Virus Database: 555 - Release Date: 12/15/2004
> 
> 
> 

Reply via email to