cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From o...@kompuart.pl (Leszek Gawron)
Subject Logger logicsheet error ?
Date Wed, 15 Jan 2003 13:28:51 GMT
I think there's an error in log.xsl logicsheet. When trying to use it for
example:

<log:logger name="sitemap.myxsplog"/>
<log:debug>test</log:debug>

the messages end up in tomcat's log because the full logging category is
cocoon.sitemap.myxsplog.

while the same logic copied exactly to my xsp file with sitemap.myxsplog
category:

try {
    org.apache.log.Logger logger =
        org.apache.log.Hierarchy.getDefaultHierarchy().getLoggerFor("sitemap.myxsplog");

    logger.setPriority(org.apache.log.Priority.getPriorityForName("DEBUG"));
    this.enableLogging(new org.apache.avalon.framework.logger.LogKitLogger(logger));
} catch (Exception e) {
}
getLogger().debug("test");

loggs messages to sitemap.log (which is correct)

this line:
org.apache.log.Logger logger =
org.apache.log.Hierarchy.getDefaultHierarchy().getLoggerFor("cocoon" +
(("".equals(category))? category : "." + category));

is wrong in the log.xsl file ( there should be no "cocoon")


Am I right ?
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/      ouzo@vip.net.pl          _\\()//_
         .'/()\'.     Phone: +48(600)341118     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


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


Mime
View raw message