You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Felix Roethenbacher <fr...@felix.shacknet.nu> on 2002/11/06 22:42:10 UTC
Logging into a user-defined category
Hi!
I have written an XSP page and want to log
into a specified target (category). I can log into the
category 'sitemap.generator.serverpages.xxx' by using
getLogger().getChildLogger("xxx");
Is it possible to log into a lower level category
(e.g. into category 'xxx')?
Felix
--
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Logging into a user-defined category
Posted by Felix Roethenbacher <fr...@felix.shacknet.nu>.
Hi, it's me again.
The task can be accomplished as in the log.xsl logicsheet.
<xsp:logic>
org.apache.log.Logger logger =
org.apache.log.Hierarchy.getDefaultHierarchy().getLoggerFor("xxx");
</xsp:logic>
and then use
<xsp:logic>
logger.info("message");
</xsp:logic>
Regards, Felix
On Wed, 6 Nov 2002, Felix Roethenbacher wrote:
> Hi!
>
> I have written an XSP page and want to log
> into a specified target (category). I can log into the
> category 'sitemap.generator.serverpages.xxx' by using
>
> getLogger().getChildLogger("xxx");
>
> Is it possible to log into a lower level category
> (e.g. into category 'xxx')?
>
>
> Felix
> --
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>