logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject DOMConfigurator balking on logger name with brackets and slashes
Date Fri, 12 Nov 2004 06:33:54 GMT

Hi everyone,

I'm trying to configure a context log logger for Tomcat-5.5.4.

The docs say...
<quote>
A context is associated with the 
org.apache.catalina.core.ContainerBase.[enginename].[hostname].[path] log 
category. Note that the brackets are actually part of the name, don't omit 
them.
</quote>

I've tried this...
<logger 
name="org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mycontext]">

I've even tried escaping everything like this (note, the escape for the 
forward slash, '&#8260;', shows up as '?' in this case, which is somewhat 
beside the point, but I thought I'd mention it) ...
<logger 
name="org.apache.catalina.core.ContainerBase.&#x005B;Catalina&#x005D;.&#x005B;localhost&#x005D;.&#x005B;&#8260;mycontext&#x005D;">


In both cases, I get the following message from Log4j...

log4j:ERROR Parsing error on line 32 and column 116
log4j:ERROR Attribute value 
"org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/mycontext]" 
of type ID must be a name.


Is this simply an unfortunate naming scheme by the Tomcat team (the use of 
square brackets and the slash for the path) of which the DOMConfigurator 
(or XML parsers in general) can't deal with, or am I missing something?


Jake 


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message