geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Waldo Ramírez Montaño <>
Subject Re: Do individual logging in apps work?
Date Fri, 31 Aug 2007 16:49:25 GMT

Thanks Kevan,

Here is more detail:
* The WebApp has it's log4j.xml and log4j.dtd files in the traditional
WEB-INF/classes folder.
* It also has its log4j.jar version in the WEB-INF/lib folder.
* The log folders already exist in <geronimo>/bin folder.

Deploying the WebApp in Geronimo v1.1.1, it reads the descriptor (log4j.xml)
and creates the log files as described in that xml.
In Geronimo v1.1.1 the same happens if JVM 1.4 or JVM 1.5 is used.

For Geronimo v2.0.1, I beleive that the descriptor is discarded and the log
reports of the WebApp go directly to Console log; a bit goes to geronimo.log
file, without changes in

What's wrong?

Here is log4j.xml (maybe it isn't displayed correctly here):

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="">
	<appender name="DEFAULT_LOG"
		<layout class="org.apache.log4j.PatternLayout">
	<appender name="APPLOG"
		<layout class="org.apache.log4j.PatternLayout">
	<appender name="MAILLOG"
		<layout class="org.apache.log4j.PatternLayout">
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
	<category name="org.apache" additivity="false">
		<priority value="info" />
		<appender-ref ref="APPLOG" />
	<category name="org.test" additivity="false">
		<priority value="debug" />
		<appender-ref ref="APPLOG" />
		<priority value="error" />
		<appender-ref ref="DEFAULT_LOG" />

Thanks again,

Kevan Miller wrote:
> On Aug 31, 2007, at 9:55 AM, Waldo wrote:
>> Hello,
>> Recently I downloaded Geronimo 2.0.1 and started using it;  
>> previously I used
>> Geronimo 1.1.1.
>> The question is, why in Geronimo 1.1.1 individual logging in apps  
>> works and
>> why that doesn't work in Geronimo 2.0.1????
>> For example, the individual creation of log files in each WebApp  
>> works in
>> Geronimo 1.1.1 but the same app (including descriptors) does not  
>> creates log
>> files.
>> What am I missing????
> Hi Waldo,
> Can you describe your WebApp logging configuration that you used in G  
> 1.1.1 in a bit more detail?
> --kevan

View this message in context:
Sent from the Apache Geronimo - Users mailing list archive at

View raw message