logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gonçalo Luiz" <goncalo.l...@gmail.com>
Subject Re: Accessing all appenders / layouts
Date Thu, 14 Sep 2006 08:16:55 GMT
Hello, Thank you for you answer.

I did check that method that returns only referenced Appenders.
I had to subclass Hierarchy and redefine the parse function to add
appenders to the bag in the first pass, instead of materializing them
only when they're referenced.

Thank you, once again.

Best Regards,
Gonçalo Luiz.

On 14/09/06, Ron Grabowski <rongrabowski@yahoo.com> wrote:
> I don't know if the repository is aware of non-used Appenders. Did you
> try this:
>
>  LogManager.GetRepository().GetAppenders();
>
> To get the Layouts, you'll need to test each IAppender to see if it is
> an AppenderSkeleton.
>
> --- Gonçalo Luiz <goncalo.luiz@gmail.com> wrote:
>
> > Hello,
> >
> > Is there any way to access all appenders and layouts in the
> > configuration file (even those that are not associated to any
> > logger?).
> >
> > I'm using log4net 1.2.10.
> >
> > Thank you.
> >
> > Best Regards,
> > --
> > Gonçalo Luiz
> >
>
>


-- 
Gonçalo Luiz

Mime
View raw message