You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Gary Gregory (JIRA)" <ji...@apache.org> on 2016/07/15 15:22:20 UTC

[jira] [Commented] (LOG4J2-1464) Suppress repeating lines

    [ https://issues.apache.org/jira/browse/LOG4J2-1464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379548#comment-15379548 ] 

Gary Gregory commented on LOG4J2-1464:
--------------------------------------

Hi,

I've see this used to remove duplicate lines in hex dumps which is nice.

Do you see this as eliminating events with duplicate message strings only? What if the message strings are the same but markers are different? Or the context map different? And so on.

> 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: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org