Thanks for reply :-)
The matter is addittivity IS set to false, there is a config:
log4j.appender.NETCOOL=org.apache.log4j.RollingFileAppender
log4j.appender.NETCOOL.threshold=DEBUG
log4j.appender.NETCOOL.layout=org.apache.log4j.PatternLayout
log4j.appender.NETCOOL.layout.ConversionPattern=%d{ABSOLUTE} %-5p [%c{1}] %m%n
log4j.appender.NETCOOL.append=true
log4j.appender.NETCOOL.file=${org.apache.geronimo.base.dir}/../log/netcool.log
log4j.appender.NETCOOL.bufferedIO=false
log4j.appender.NETCOOL.maxBackupIndex=3
log4j.appender.NETCOOL.maxFileSize=10MB
# set the default priority to INFO for all micromuse/ibm loggers
log4j.category.com.ibm.tivoli=INFO,NETCOOL
log4j.category.com.micromuse=INFO,NETCOOL
# override any specific loggers
log4j.category.com.micromuse.common.util.Debug=DEBUG
log4j.additivity.com.ibm.tivoli=false
log4j.additivity.com.micromuse=false
And again, there is a lot of duplicates:
23:06:30,516 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,519 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,578 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,579 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,596 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,639 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,640 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,793 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,795 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,854 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,855 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,915 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,917 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,976 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,978 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:30,987 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,037 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,045 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,110 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,117 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,177 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
23:06:31,178 DEBUG [Debug] Thread[SynchronousMessageProcessor,5,main]Returning
jdbc:sybase:Tds:crl_os_ks1_p:4100
(Skipped...)
Best wishes,
Dmitry Surovtsev
-----Original Message-----
From: Jacob Kjome [mailto:[email protected]]
Sent: Thursday, February 19, 2009 8:33 AM
To: Log4J Users List
Cc: Log4J Developers List
Subject: Re: Filtering duplicated log-messages
Sure, by setting additivity to false. Post your config. BTW, don't post it to
the log4j-dev list. post it to the log4j-user list. The dev list isn't for
general user question, but for Log4j development issues.
Jake
On 2/18/2009 7:28 AM, Surovtsev, Dmytro wrote:
> Hi all,
>
>
>
> Is it possible to filter messages going to logfile in 1.2 version? Problem:
>
>
>
> 05:00:35,932 DEBUG [Debug]
> Thread[SynchronousMessageProcessor,5,main]Returning
> jdbc:postgresql://crl_pg_app:5432/crl
>
> 05:00:35,957 DEBUG [Debug]
> Thread[SynchronousMessageProcessor,5,main]Returning
> jdbc:postgresql://crl_pg_app:5432/crl
>
> 05:00:35,963 DEBUG [Debug]
> Thread[SynchronousMessageProcessor,5,main]Returning
> jdbc:postgresql://crl_pg_app:5432/crl
>
>
>
> 05:00:36,002 DEBUG [Debug]
> Thread[SynchronousMessageProcessor,5,main]Returning
> jdbc:sybase:Tds:crl_os_ks1_p:4100
>
> 05:00:36,004 DEBUG [Debug]
> Thread[SynchronousMessageProcessor,5,main]Returning
> jdbc:sybase:Tds:crl_os_ks1_p:4100
>
>
>
> Is it possible to log only first such message and just count duplicates?
>
>
>
> TIA.
>
>
>
>
>
> Best wishes,
>
> Dmitry Surovtsev
>
>
>
>
>
>
> ------------------------------------------------------------------------
> Please note: The information in this email and in any attachments is
> confidential and may be privileged. If you are not the intended
> recipient, please destroy this message, delete any copies held on your
> systems and notify the sender immediately. You should not retain, copy
> or use this email for any purpose, nor disclose all or any part of its
> content to any other person.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Please note: The information in this email and in any attachments is
confidential and may be privileged. If you are not the intended recipient,
please destroy this message, delete any copies held on your systems and notify
the sender immediately. You should not retain, copy or use this email for any
purpose, nor disclose all or any part of its content to any other person.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]