You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Cook, Graham" <gr...@cgey.com> on 2003/03/21 14:42:54 UTC

RE: WebSphere Application Developer / Log4J, duplicate messages?? ?

This is the log4.properties file:-


# Create a single console appender that logs INFO and higer
#log4j.rootLogger=INFO, stdout

# Create a console appender that logs ERROR's on org.apache ONLY
log4j.logger.org.apache=ERROR, output1

# Create a console appender that logs TRACE or higher on corus packages only
log4j.logger.corus=TRACE, output1

# Configure the stdout appender to go to the console
log4j.appender.output1=org.apache.log4j.ConsoleAppender

# Configure the stdout appender to use the PatternLayout
log4j.appender.output1.layout=org.apache.log4j.PatternLayout




-----Original Message-----
From: shirishchandra.sakhare@ubs.com
[mailto:shirishchandra.sakhare@ubs.com]
Sent: 21 March 2003 13:40
To: struts-user@jakarta.apache.org
Subject: RE: WebSphere Application Developer / Log4J, duplicate
messages???


How have u configured log4j?

I mean if the same appender is added twice(In this case Sysout),the output
of logging will go twice to the appender..

So may be u can check this.

regards,
Shirish

-----Original Message-----
From: Cook, Graham [mailto:graham.cook@cgey.com]
Sent: Friday, March 21, 2003 2:34 PM
To: 'struts-user@jakarta.apache.org'
Subject: WebSphere Application Developer / Log4J, duplicate messages???


Hi, 
 
I have a problem with WSAD. I've enabled log4j as it should be but whenever
a message gets printed to the console, I get a duplicate SYSTEMOUT message
from what i believe is WSAD.
 
Does anyone have any idea how to stop WSAD duplicating these log4J messages?
 
 
EXAMPLE:-
 
..
..
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Mapping Parameter value for this action is Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
Parmater doaction=Calculate
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Mapping Parameter value for
this action is Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U Parmater doaction=Calculate
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In calculate() method
[20/03/03 15:47:07:444 GMT] 1036abaf SystemOut U In
calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
21992 [Servlet.Engine.Transports:10] DEBUG registration.SteelInvoiceAction -
In calculateAndSetItemLinesTotal() method
..
..


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


********************************************************************************************
" This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst & Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message ".
********************************************************************************************


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