cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: question on getLogger()
Date Tue, 03 Apr 2001 20:37:03 GMT
On Tue, 3 Apr 2001, Berin Loritsch wrote:

> Donald Ball wrote:
> >
> > i thought i'd try my hand at a little LoggingEntityResolver so that we can
> > try to track file/uri dependencies for the various sitemap components.
> > unfortunately, i'm having trouble getting access to the Logger -
> > getLogger() returns null. here's my sample code:
>
> How is this being instantiated?  All components in Cocoon are created by a
> ComponentFactory that takes care of alot of implementation details for you.
> If you are creating the EntityResolver like this:
>
> EntityResolver resolver = new LoggingEntityResolver(realResolver);
>
> then you can't forget to do the lifecycle management functions:
>
> resolver.setLogger(this.getLogger());
> resolver.configure(conf);

i see now, thanks. okay, i just checked in a simple LoggingEntityResolver
which may help somewhat in caching.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message