[jboss-jira] [JBoss JIRA] (LOGMGR-52) Add option to WriterHandler to collapse repeated messages

James Perkins (JIRA) issues at jboss.org
Thu Jul 5 14:25:00 EDT 2018


     [ https://issues.jboss.org/browse/LOGMGR-52?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Perkins updated LOGMGR-52:
--------------------------------
    Fix Version/s: 2.1.4.Final
                       (was: 2.1.3.Final)


> Add option to WriterHandler to collapse repeated messages
> ---------------------------------------------------------
>
>                 Key: LOGMGR-52
>                 URL: https://issues.jboss.org/browse/LOGMGR-52
>             Project: JBoss Log Manager
>          Issue Type: Feature Request
>            Reporter: David Lloyd
>            Assignee: David Lloyd
>             Fix For: 2.1.4.Final
>
>
> The WriterHandler could have a time interval configured wherein a repeated message would be collapsed.
> The last message would be stored in a field for comparison along with a nanoTime tag (the timestamp on the message is not adequate because the clock can have skew or be reset completely at any time).  If the current message string equals the last message string, and collapsing is enabled, then instead of logging the message, a count is incremented.  If the current message is not equal, then the stored message is logged with a tag indicating the number of repeats (i18n?) and then the next submitted message is logged.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list