Firstly make sure you have no spaces after the commas and that the struts entry is on a separate line from the rootlogger entry
Try something like
log4j.rootCategory=DEBUG,stdout log4j.logger.org.apache.struts=FATAL
Note that Struts uses a few libraries (particularly digester and beanutils) which are fairly verbose. I'd advise setting the root logger to a higher threshold, and then relaxing the threshold only for your loggers.
Joe
-----Original Message----- From: Allen Day [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 December 2004 10:24 a.m. To: [EMAIL PROTECTED] Subject: RE: Applicaton-specific logging in Struts
I'm new to Struts. I would also like to reduce (or turn off) the Struts logging.
Currently I'm using Struts 1.2.4, and I'm using log4j-1.2.9.
In addition to the first line, I added the second line to my 'log4j.properties' file, but nothing changed -
log4j.rootLogger=DEBUG, stdout, wlout log4j.logger.org.apache.struts=FATAL, stdout
Any suggestions?
Thanks, Allen Day Intermountain Health Care
[EMAIL PROTECTED] 11/26/2004 6:59:10 AM >>>log4j.logger.com.myapp=DEBUG,A1 log4j.logger.org.apache.struts=FATAL,A2
where A1 and A2 are different console or file appenders.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--
Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex