如何禁用icefaces信息记录

时间:2012-01-03 13:12:59

标签: java-ee logging log4j icefaces slf4j

我想知道如何禁用icefaces信息记录,如:

INFO: 
ICEsoft Technologies Inc.
ICEpush 2.0.2
Build number: 6
Revision: 24488

Jan 3, 2012 2:47:48 PM org.icefaces.util.EnvConfig init
INFO: ICEfaces Configuration: 
org.icefaces.render.auto: true [default]
org.icefaces.autoid: true [default]
org.icefaces.aria.enabled: true [default]
org.icefaces.blockUIOnSubmit: false [default]
org.icefaces.compressDOM: false [default]
org.icefaces.compressResources: true [default]
org.icefaces.connectionLostRedirectURI: null [default]
org.icefaces.deltaSubmit: false [default]
org.icefaces.lazyPush: true [default]
org.icefaces.sessionExpiredRedirectURI: null [default]
org.icefaces.standardFormSerialization: false [default]
org.icefaces.strictSessionTimeout: false [default]
org.icefaces.windowScopeExpiration = 1000 [default]
org.icefaces.mandatoryResourceConfiguration: null [default]
org.icefaces.uniqueResourceURLs: true [default]
org.icefaces.lazyWindowScope: true [default]
org.icefaces.disableDefaultErrorPopups: false [default]

Jan 3, 2012 2:47:49 PM org.icefaces.impl.renderkit.DOMRenderKit <clinit>
INFO: 
ICEsoft Technologies Inc.
ICEfaces 2.0.2
Build number: 8
Revision: 24561

我尝试将以下内容添加到我的log4j配置中,但没有运气:

log4j.logger.org.icefaces=FATAL

1 个答案:

答案 0 :(得分:2)

看起来ICEfaces正在使用java.util.logging。您必须配置j.u.l以丢弃这些消息,或者(更好)使用bridgej.u.l重定向到SLF4J并控制Log4J输出。