如何在log4j中设置属性把struts2的debug信息去掉

jiyanliang 2008-06-22
每次运行,struts2都产生大量的日志信息,严重干扰。
引用
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler  - Entering nullPropertyValue [target=[edu.cumt.jnotnull.action.ProductAction@1bf3519, com.opensymphony.xwork2.DefaultTextProvider@1214726], property=org]
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.util.InstantiatingNullHandler  - Entering nullPropertyValue [target=[edu.cumt.jnotnull.action.ProductAction@1bf3519, com.opensymphony.xwork2.DefaultTextProvider@1214726], property=org]
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159235 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - Property: id
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - Class: edu.cumt.jnotnull.domain.BigClass
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - field-level type converter for property [id] = none found
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - Property: id.id
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - Class: edu.cumt.jnotnull.domain.BigClass
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - global-level type converter for property [id] = none found
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.util.XWorkConverter  - falling back to default type converter [com.opensymphony.xwork2.util.XWorkBasicConverter@145d135]
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
159266 [http-8080-1] DEBUG com.opensymphony.xwork2.config.ConfigurationManager  - Checking ConfigurationProviders for reload.
yuyoo4j 2008-06-22
# set java package code's logger level
log4j.logger.com.opensymphony.xwork2=ERROR

lzb7213 2009-01-07
请问LZ这个问题最后怎么解决的
vinter 2009-01-15
贴出你的Log4j.properties文件来看看
Global site tag (gtag.js) - Google Analytics