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 // \\
\_\\ //_/ [EMAIL PROTECTED] _\\()//_
.'/()\'. Phone: +48(600)341118 / // \\ \
\\ // recursive: adj; see recursive | \__/ |
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]