Looking at the source, it appears that PropertyConfigurator supports both "log4j.category" or "log4j.logger" interchangably, as well as "log4j.rootCategory" and "log4j.rootLogger".
Do you really mean for this to be all on one line or is it an email formatting error? log4j.category.com.opensymphony.xwork2.ognl.OgnlValueStack=off, xwork log4j.appender.xwork=org.apache.log4j.ConsoleAppender I would try: log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack = ERROR And to be safe, you can kill all opensymphony logging as well: Log4j.logger.com.opensymphony.xwork2 = ERROR -----Original Message----- From: strutstwouser [mailto:[email protected]] Sent: Tuesday, October 13, 2009 9:44 AM To: [email protected] Subject: log4j xml format to log4j.properties help Hi, I'm trying to suppress verbose logs from a Struts2 application. The Wiki (http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-Reduceverboselogging) says to add : <category name="com.opensymphony.xwork2.ognl.OgnlValueStack"> <priority value="error"/> </category> to log4j.xml However, our system uses log4j.properties files, so i tried to do the same as : log4j.rootCategory=off log4j.category.com.opensymphony.xwork2.ognl.OgnlValueStack=off, xwork log4j.appender.xwork=org.apache.log4j.ConsoleAppender log4j.appender.xwork.layout=com.abc.logging.impl.Log4JPatternLayout log4j.appender.xwork.layout.ConversionPattern=%d{yyyy-MM-dd'T'HH:mm:ss.SSSZ} %-5p %c{1} - %m%n This does not show any change in behavior and the logs still appear. I see some examples that start with log4j.rootLogger= instead of log4j.rootCategory= . Does that matter ? . Am i missing something ? Thanks, s2user -- View this message in context: http://www.nabble.com/log4j-xml-format-to-log4j.properties-help-tp25873162p25873162.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]
