cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Strange Logging Behaviour
Date Mon, 29 Apr 2002 13:15:46 GMT
> From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> 
> 
> Vadim Gritsenko wrote:
> >
> > > From: Carsten Ziegeler [mailto:cziegeler@s-und-n.de]
> > >
> > > I just found two strange things about logging in Cocoon:
> > >
> > > a) If the logger category for a component is not configured in the
> > > cocoon.xconf
> > >    (via the logger attribute), it logs by default into
"core.manager".
> > >    According to the configuration in web.xml, this should be just
> > > "core".
> > >
> > > b) The following lines in the cocoon.xconf make me a little bit
> > > wonder:
> > >
> > >     <category name="core" log-level="DEBUG">
> > >       <category name="startup" log-level="DEBUG"/>
> > >       <category name="roles" log-level="DEBUG"/>
> > >       <category name="manager" log-level="DEBUG"/>
> > >
> > >    These lines achieve that anything logged to the category
> > > core.manager (or
> > >    core.roles or core.startup) is ignored(!) and never logged.
> >
> > Aren't log targets inherited by nested categories?
> >
> Yes, they are - if you don't specify own configurations, so a line

That's the *if* which worries me.


> like <category name="startup" log-level="DEBUG"/> configures this
> subcategory to have absolutely no target. In my eyes are the
> three lines for the sub-categories not necessary as they should
> get the same configuration.
> 
> I saw your patch for this and this is fine as well for me, also
> a the following lines achieve the same:
>     <category name="core" log-level="DEBUG">
>       <log-target id-ref="core"/>
>       <log-target id-ref="error"/>
>     </category>

Same, but lots of people (me included) will wonder how to change log
level for particular sub category. Now the *way* is shown, people can
follow :)

Regards,
Vadim

 
> Thanks,
> 
> Carsten
> 
> Open Source Group                        sunShine - b:Integrated
> ================================================================
> Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
> www.s-und-n.de                      mailto: cziegeler@s-und-n.de
> ================================================================


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


Mime
View raw message