Thanks a lot David. I solved this using following lines as suggested by you
log4j.logger.freemarker=OFF, A1 log4j.logger.com.opensymphony.xwork2=OFF, A1 log4j.logger.org.apache=INFO, A1 log4j.rootLogger=DEBUG, A1 -----Original Message----- From: David Canos [mailto:davidca...@gmail.com] Sent: Wednesday, December 31, 2008 6:57 PM To: Struts Users Mailing List Subject: Re: Logger try to add this line log4j.logger.org.apache.struts=INFO, A1 just after log4j.rootLogger=DEBUG, A1 good luck 2008/12/31 Rajil <ra...@appliedcommerce.com> > Here is my log4j. > > The thing is I want debug messages from my own class but want to stop all > struts specific logger. > > > # Set root logger level to DEBUG and its only appender to A1. > log4j.rootLogger=DEBUG, A1 > > # A1 is set to be a ConsoleAppender. > log4j.appender.A1=org.apache.log4j.RollingFileAppender > log4j.appender.A1.File=C:/tomcat5.5/logs/dbCompare.log > log4j.appender.A1.MaxFileSize =1024KB > log4j.appender.A1.MaxBackupIndex=15 > > # A1 uses PatternLayout. > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > log4j.appender.A1.layout.ConversionPattern=[%t] %l - %m%n > # log4j.logger.org.apache=ERROR, A1 > > > # START :: Configuration 1 : Log of a specific Level > log4j.logger.org.securityfilter = ERROR > # END :: Configuration 1 : Log of a specific Level > > aFTER LABEL V1.1 - Currently Running1 > > > > > -----Original Message----- > From: David Canos [mailto:davidca...@gmail.com] > Sent: Wednesday, December 31, 2008 6:51 PM > To: Struts Users Mailing List > Subject: Re: Logger > > can you paste your log4j.properties ?? > > 2008/12/31 Rajil <ra...@appliedcommerce.com> > > > Hi all; > > > > > > > > Can anybody suggest a way to stop all struts specific logs included in my > > log file?? > > > > > > > > I am using struts2.1.2, jdk1.5, tomcat5.5 and log4j. > > > > > > > > > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Creating an DefaultActionProxy for namespace /compare and > > action name structureCompare > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - intercept '/compare/structureCompare' { > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - requested_locale=null > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - before Locale=en_US > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Entering nullPropertyValue > > [target=[com.dbcompare.compare.structurecompareact...@1958bf9, > > com.opensymphony.xwork2.defaulttextprovi...@1546dbc], property=struts] > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.warn(CommonsLogge > > r.java:46) - Could not find property [struts] > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Bypassing /compare/structureCompare > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Setting static parameters {} > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Setting params NONE > > > > [http-8055-Processor25] > > > > > > com.opensymphony.xwork2.util.logging.commons.CommonsLogger.debug(CommonsLogg > > er.java:58) - Setting params structureCompareForm.db1Ip => [ ] > > structureCompareForm.db1Service => [ ] structureCompareForm.db2Password > => > > [ ] structureCompareForm.db1Port => [ ] structureCompareForm.db1User => > [ > > ] structureCompareForm.db2Service => [ ] structureCompareForm.db2Ip => [ > > ] > > structureCompareForm.configTable => [ TableFieldList ] > > structureCompareForm.db2User => [ ] structureCompareForm.db2Port => [ ] > > structureCompareForm.db1Password => [ ] > > > > > > > > > > > > > > > > > > > > regards, > > > > > > > > Rajil Davda > > > > > > > > Software Engineer, > > > > Applied Software Pvt. Ltd. | 42, Tapovan Society | Above Bank of Baroda | > > Near Manekbaug Hall | Ambawadi | Ahmedabad. > > > > + 91 942 888 99 15, + 91 79 266 20 719 Ext. 38 > > > > > > > > > > > > __________ NOD32 3725 (20081231) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > __________ NOD32 3725 (20081231) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org