[
https://issues.apache.org/jira/browse/LOG4J2-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379614#comment-15379614
]
Norbert Somlai commented on LOG4J2-1464:
----------------------------------------
Hi,
I figured out where I have seen this: in an Android log. It's a Linux syslog
feature. Example: https://github.com/NativeScript/nativescript-cli/issues/1787
I would go simple and count only totally identical message strings (or maybe
groups of 3-5 strings if you wanna get fancy). It shouldn't lose any
information that may be important.
I read one place that syslog even limits the counting to a 20-second window
then writes another full message and starts over. Maybe this is a good idea so
we do not lose too much time information.
> Suppress repeating lines
> ------------------------
>
> Key: LOG4J2-1464
> URL: https://issues.apache.org/jira/browse/LOG4J2-1464
> Project: Log4j 2
> Issue Type: New Feature
> Components: Appenders
> Affects Versions: 2.6.2
> Reporter: Norbert Somlai
> Priority: Minor
>
> While counting how many times Hibernate issues exactly the same SQL, I
> remembered seeing a log like this somewhere:
> 12:34:56 INFO blah
> ... previous line repeated 23 times
> 11:22:33 DEBUG blah
> Having appenders suppress lines that follow each other and are exactly the
> same would be a nice way to make log files more readable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]