You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Waldo <wa...@correo.unam.mx> on 2007/08/31 15:55:44 UTC

Do individual logging in apps work?

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????

Thanks!
Waldo

-- 
View this message in context: http://www.nabble.com/Do-individual-logging-in-apps-work--tf4360280s134.html#a12426842
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Do individual logging in apps work?

Posted by newGer <jo...@gmail.com>.
Hi Waldo,
Just wondering whether you got this problem sorted out ? If yes then what is
the solution.
I am facing the same problem.

Thanks,

Waldo Ramírez Montaño wrote:
> 
> 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 server-log4j.properties.
> 
> 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="http://jakarta.apache.org/log4j/">
> 	<appender name="DEFAULT_LOG"
> 		class="org.apache.log4j.RollingFileAppender">
> 		
> 		
> 		
> 		
> 		<layout class="org.apache.log4j.PatternLayout">
> 			
> 		</layout>
> 	</appender>
> 	<appender name="APPLOG"
> 		class="org.apache.log4j.RollingFileAppender">
> 		
> 		
> 		
> 		
> 		<layout class="org.apache.log4j.PatternLayout">
> 			
> 		</layout>
> 	</appender>
> 	<appender name="MAILLOG"
> 		class="org.apache.log4j.net.SMTPAppender">
> 		
> 		
> 		
> 		
> 		
> 		<layout class="org.apache.log4j.PatternLayout">
> 			
> 		</layout>
> 		<filter class="org.apache.log4j.varia.LevelMatchFilter">
> 			
> 			
> 		</filter>
> 	</appender>
> 	<category name="org.apache" additivity="false">
> 		<priority value="info" />
> 		<appender-ref ref="APPLOG" />
> 	</category>
> 	<category name="org.test" additivity="false">
> 		<priority value="debug" />
> 		<appender-ref ref="APPLOG" />
> 	</category>
> 	<root>
> 		<priority value="error" />
> 		<appender-ref ref="DEFAULT_LOG" />
> 	</root>
> </log4j:configuration>
> 
> Thanks again,
> Waldo
> 
> 
> 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: http://www.nabble.com/Do-individual-logging-in-apps-work--tp12426842s134p14659335.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Do individual logging in apps work?

Posted by Waldo Ramírez Montaño <wa...@correo.unam.mx>.
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 server-log4j.properties.

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="http://jakarta.apache.org/log4j/">
	<appender name="DEFAULT_LOG"
		class="org.apache.log4j.RollingFileAppender">
		
		
		
		
		<layout class="org.apache.log4j.PatternLayout">
			
		</layout>
	</appender>
	<appender name="APPLOG"
		class="org.apache.log4j.RollingFileAppender">
		
		
		
		
		<layout class="org.apache.log4j.PatternLayout">
			
		</layout>
	</appender>
	<appender name="MAILLOG"
		class="org.apache.log4j.net.SMTPAppender">
		
		
		
		
		
		<layout class="org.apache.log4j.PatternLayout">
			
		</layout>
		<filter class="org.apache.log4j.varia.LevelMatchFilter">
			
			
		</filter>
	</appender>
	<category name="org.apache" additivity="false">
		<priority value="info" />
		<appender-ref ref="APPLOG" />
	</category>
	<category name="org.test" additivity="false">
		<priority value="debug" />
		<appender-ref ref="APPLOG" />
	</category>
	<root>
		<priority value="error" />
		<appender-ref ref="DEFAULT_LOG" />
	</root>
</log4j:configuration>

Thanks again,
Waldo


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: http://www.nabble.com/Do-individual-logging-in-apps-work--tf4360280s134.html#a12430180
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Do individual logging in apps work?

Posted by Kevan Miller <ke...@gmail.com>.
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