logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Geise <dge...@TRUELINK.com>
Subject RE: log4j logging config for a struts app - seeing struts msgs
Date Tue, 12 Nov 2002 00:45:59 GMT
Robert, log4j folks,

I'm a newbie who has been lurking this discussion group for some time.
Please forgive my ignorance, but I can't seem to get the topic (classname)
filter in my log4j.xml file to work properly.  Could someone help me by
pointing out how to get the same expression into the XML form of the config
file?

Thanks in advance,
David 

-----Original Message-----
From: Kevin.Hooke@indus.com [mailto:Kevin.Hooke@indus.com] 
Sent: Monday, November 11, 2002 12:32 PM
To: struts-user@jakarta.apache.org; log4j-user@jakarta.apache.org
Subject: log4j logging config for a struts app - seeing struts msgs


Robert - thats exactly what I was looking for, thanks for your help!

Kevin


Date: Mon, 11 Nov 2002 13:44:43 -0600
From: Robert <rmcintosh@bull-enterprises.com>
Subject: log4j logging config for a struts app - seeing struts msgs
Content-Type: text/plain; charset=us-ascii; format=flowed


Try adding something along the lines of this to your log4j.properties file:

log4j.logger.org.apache=WARN (or ERROR, etc.)

Which means that the packages org.apache and below will log at level WARN,
ERROR, etc.

You can also specify complete class names like:

log4j.logger.org.apache.struts.actions.Action=(level)

HTH,
Robert



****************************************
This email message and all attachments transmitted with it are for the sole
use of the intended recipient(s) and may contain confidential and privileged
information. Please DO NOT forward this email outside of the recipient's
Company unless expressly authorized to do so herein.  Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.

Any views expressed in this email message are those of the individual sender
except where the sender specifically states them to be the views of Indus
International, Inc.
****************************************



--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>


Mime
View raw message