Re: log4j reduction of repeated message

2017-12-13 Thread Remko Popma
I believe this is possible, but it’s not trivial. See the discussion here: 
https://issues.apache.org/jira/browse/LOG4J2-1630

(Shameless plug) Every java main() method deserves http://picocli.info

> On Dec 14, 2017, at 2:18, Carlos Terron Bueno  wrote:
> 
> rsyslog has an option, 
> $RepeatedMsgReduction
>  tha can be used to reduce the number of log messages in a system. This 
> option groups the same messages, printing the message in the record and then 
> a line with the number of times it has been repeated.
> 
> Is it possible to do the same thing with log4j?
> 
> Thanks
> 
> Carlos


log4j reduction of repeated message

2017-12-13 Thread Carlos Terron Bueno
rsyslog has an option, 
$RepeatedMsgReduction
 tha can be used to reduce the number of log messages in a system. This option 
groups the same messages, printing the message in the record and then a line 
with the number of times it has been repeated.

Is it possible to do the same thing with log4j?

Thanks

Carlos