On Fri, 2004-05-28 at 04:01, Stephen McConnell wrote:
> Bruno:
> 
> Seems to my that your raising a non-trivial issue. Could you do us a 
> favor and post this as an issue in JIRA under the Merlin Runtime. Just a 
> the moment that are a bunch of things going on concerning build and site 
> related stuff that is absorbing available bandwidth but a JIRA post will 
> ensure that this is addressed.

Done, at least for the first issue. I'm a bit confused about the second
issue since I moved the log4j.xml file out of the working directory and
log4j seems to still manage to find it.

> 
> Cheers, Steve.
> 
> 
> Bruno Dumon wrote:
> > Hi,
> > 
> > I tried to configure Merlin (3.3-RC6) to use log4j for logging, by using
> > the following properties:
> > 
> > merlin.logging.implementation=artifact:avalon-logging/avalon-logging-log4j#1.0.0
> > merlin.logging.config=log4j.xml
> > 
> > These are recognized and it basically works, but I noticed two problems:
> > 
> > 1. loggers are retrieved from log4j using slashes as separators in the
> > category name instead of dots, which log4j doesn't recognize. For
> > example, "/a/b" instead of "a.b". This is because getQualifiedName() of
> > DeploymentModel is used for this.
> > 
> > 
> > 2. Log4jLoggingFactory strips all slashes in front of the configuration
> > file name, which is IMO one too much. I specifiy a relative path (in
> > fact just log4j.xml in the current directory), Merlin turns this into an
> > absolute path, and the Log4jLoggingFactory strips the leading slashes
> > turning it in an incorrect relative path. Eventually log4j finds the
> > file through its fall back mechanisms, you can see that this is the case
> > by doing an "export MERLIN_JVM_OPTS=-Dlog4j.configDebug=true" before
> > starting Merlin, output is:
> > 
> > log4j: [home/bruno/<snip>/log4j.xml] does not exist.
> > log4j: Trying to find [log4j.xml] using context classloader [EMAIL PROTECTED]
> > log4j: Trying to find [log4j.xml] using [EMAIL PROTECTED] class loader.
> > log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
> > log4j: Trying to find [log4j.properties] using context classloader [EMAIL 
> > PROTECTED]
> > log4j: Trying to find [log4j.properties] using [EMAIL PROTECTED] class loader.
> > log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
> > log4j: Could not find resource: [null].
> > log4j: System property is :null
> > log4j: Standard DocumentBuilderFactory search succeded.
> > log4j: DocumentBuilderFactory is: 
> > org.apache.crimson.jaxp.DocumentBuilderFactoryImpl
> > 
> > 
-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]                          [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to