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]

Reply via email to