Matt,
It was an email formatting error ; the first line just has : 
log4j.category.com.opensymphony.xwork2.ognl.OgnlValueStack=off

Now, if i change to :
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR , should i
also have : 
log4j.rootLogger=off (instead of log4j.rootCategory=off) ? 

Also, which appender will this logger use, since rootLogger is off -
shouldn't i define an appender A1 as well, like :
log4j.logger.com.opensymphony.xwork2.ognl.OgnlValueStack=ERROR , A1 

I dont have access to the source right now, will try this tomorrow and see
how it goes..

Thanks!



Matt Brown wrote:
> 
> 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
> 

-- 
View this message in context: 
http://www.nabble.com/log4j-xml-format-to-log4j.properties-help-tp25873162p25877736.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