Olá
Configurei o Log4J para gerar um arquivo de log de acesso aos sistema (INFO). Porém a cada registro no log vários registros são inseridos no stdout. Como retirar estas várias impressões do stdout???
ex:
-
Registro no log de acesso:
-24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”) -
Registro no stdout
-24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)
1518765 [http-8080-Processor23] INFO procis - -24/08/2006 16:55 Conexão: procis IP: 127.0.0.1 Msg: Programa pweb01(“matricula”, “090566”, “1”, “procis”, “tania”, “”, “”)-Segue o meu arquivo properties:
log4j.rootLogger=INFO, stdout, htmlOut
!-------------------------------Acesso OPTIONS----------------------------!
log4j.appender.htmlOut=org.apache.log4j.DailyRollingFileAppender
log4j.appender.htmlOut.File=${catalina.home}/webapps/procis/logs/procis_acesso
log4j.appender.htmlOut.layout=org.apache.log4j.PatternLayout
log4j.appender.htmlOut.DatePattern=’.‘yyyy-MM-dd’.log’
!-------------------------------Console OPTIONS----------------------------!
log4j.appender.stdout=org.apache.log4j.DailyRollingFileAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender