Olá, estou tentando usar o log4j para mostrar apenas mensagens do nível de Warning pra cima, mas não consigo filtrar as mensagens que vêm do JSF, como a abaixo: INFO: Initializing Sun’s JavaServer Faces implementation (1.2_05-b06-FCS) for context ‘/…-…’. Eu percebi que quando removo o log4j.properties as mensagens continuam aparecendo (só muda que aparece a mensagem de erro por não encontrar o log4j.properties). Se eu remover algumas linhas de filtragem, nada muda. Não sei mais o que fazer.
Estou enviando abaixo como está meu configurador.
# ***** Set root logger level to WARN and its only appender to A.
log4j.rootLogger=WARN, A
# ***** A is set to be a ConsoleAppender.
log4j.appender.A=org.apache.log4j.ConsoleAppender
# ***** A uses PatternLayout.
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
log4j.logger.org.apache.catalina=WARN
log4j.logger.org.hibernate.cfg=WARN
log4j.logger.com.sun.faces=WARN
log4j.logger.com.sun.faces.config.ConfigureListener=WARN
O log segue abaixo:
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:vale-transporte' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context/Realm} Setting property 'debug' to '99' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sige-lotacao' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:sige-rh' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context/Realm} Setting property 'debug' to '99' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:Concurso' did not find a matching property.
0 [main] WARN org.apache.commons.digester.Digester - [SetPropertiesRule]{Server/Service/Engine/Host/Context/Realm} Setting property 'debug' to '99' did not find a matching property.
23/08/2010 13:31:49 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_05-b06-FCS) for context '/Concurso'
23/08/2010 13:31:53 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_05-b06-FCS) for context '/sige-rh'
23/08/2010 13:31:54 com.sun.faces.config.processor.NavigationConfigProcessor addNavigationCasesForRule
AVISO: JSF1058: The resource referred to by to-view-id, 'cadastro/funcionario.jsp', for navigation from '*', does not start with '/'. This will be added for you, but it should be corrected.
23/08/2010 13:31:54 com.sun.faces.config.processor.NavigationConfigProcessor addNavigationCasesForRule
AVISO: JSF1058: The resource referred to by to-view-id, 'cadastro/carencia.jsp', for navigation from '*', does not start with '/'. This will be added for you, but it should be corrected.
23/08/2010 13:31:55 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_05-b06-FCS) for context '/vale-transporte'
23/08/2010 13:31:56 com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Sun's JavaServer Faces implementation (1.2_05-b06-FCS) for context '/sige-lotacao'
Valeu…