You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leszek Gawron <ou...@kompuart.pl> on 2003/01/15 14:28:51 UTC
Logger logicsheet error ?
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