Andy Buckley wrote:
> giljo scaria wrote:
>> Hi ,
>>
>> I am using castor-1.0.5-xml  for marshalling Java
>> objects to xml files.Log4j is used for logging the
>> messages  in  my application,but castor seems to have
>> its own logging mechanism and it spits out INFO
>> messages to console.
>>
>> Is there anyway to make castor_xml to use the log4j
>> already configured for the application.
>>
>> Or else is there any way to change the level of log
>> messages to ERROR or WARN in castor.
> 
> I would also be interested to know about this. My current understanding
> of the situation is that Castor uses log4j but actually writes the
> log4j.properties file into the published JAR, so it can't be overridden.
> 
> If that's right, it would be nice(r) if Castor only used a
> log4j.properties file in src/test/resources, so that Maven would use it
> for Castor build tests but not force any log4j config in the final JAR.
> Does that make sense, or am I talking rubbish? ;-)

Actually, looking at the current Castor SVN trunk, it looks like the
log4j config doesn't exist in src/main after all:

[EMAIL PROTECTED]:.../proj/castor$ find . -name "log4j.*" | grep -v \.svn
./src/test/resources/log4j.xml
./src/bugs/log4j.xml
./src/etc/log4j.xml
./src/examples/log4j.xml
./target/test-classes/log4j.xml
./ddlgen/src/test/resources/log4j.xml

Sorry for the confusion! I'd still also be interested in knowing how to
control the Castor log level...

Andy

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to