Yes it is possible Firstly you might want to make sure your log4j properties is on the classpath. Run a simple java test where you set log4 root level to various levels and check that a simple java application logging levels change appropriately
Secondly I don't actually do it the way you are doing it. What I do is explicitely set my default logging level to WARN then turn on debugging for each individual package I want to check. It means that I don't get spam from random open source frameworks that I don't care about. <rant>In my experience most open source frameworks (struts and hibernate included) use logger.debug for useless information that only makes sense to the programmer who wrote it, and use logger.info for stuff that should clearly be debug etc. My attitude is that debugging should be helpful to a person *using* your code and trying to track down errors and only *significant* events should make up to info level. If it only makes sense to someone reading the source it should not make it into source control at all.</rant> -----Original Message----- From: Allen Day [mailto:[EMAIL PROTECTED] Sent: Wednesday, 1 December 2004 10:40 a.m. To: [EMAIL PROTECTED] Subject: RE: Applicaton-specific logging in Struts That didn't make any difference, but it was worth a try so thanks! Is there a way to turn off the Struts logging? >>> [EMAIL PROTECTED] 11/30/2004 2:30:54 PM >>> 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 -----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] --------------------------------------------------------------------- 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]