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: [EMAIL PROTECTED] [mailto:Kevin.Hooke@;indus.com] 
Sent: Monday, November 11, 2002 12:32 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
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 <[EMAIL PROTECTED]>
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>

Reply via email to