[jboss-jira] [JBoss JIRA] (LOGMGR-122) Syslog handler is not generating correct timestamp format

RH Bugzilla Integration (JIRA) issues at jboss.org
Tue Jan 5 01:49:00 EST 2016


    [ https://issues.jboss.org/browse/LOGMGR-122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144782#comment-13144782 ] 

RH Bugzilla Integration commented on LOGMGR-122:
------------------------------------------------

baranowb <bbaranow at redhat.com> changed the Status of [bug 1295657|https://bugzilla.redhat.com/show_bug.cgi?id=1295657] from NEW to MODIFIED

> Syslog handler is not generating correct timestamp format
> ---------------------------------------------------------
>
>                 Key: LOGMGR-122
>                 URL: https://issues.jboss.org/browse/LOGMGR-122
>             Project: JBoss Log Manager
>          Issue Type: Bug
>    Affects Versions: 2.0.0.Final
>         Environment: Wildfly 9.0.1.Final, Oracle JRE 1.8.0_11, CentOS 6
>            Reporter: Ricardo Kagawa
>            Assignee: James Perkins
>             Fix For: 1.4.4.Final, 1.5.5.Final, 2.0.1.Final, 2.1.0.Beta1
>
>
> The Syslog handler is outputting an extra zero before the month in the header timestamp for RFC5424, specifically for October.
> Checking [Github|https://github.com/jboss-logging/jboss-logmanager/blob/master/src/main/java/org/jboss/logmanager/handlers/SyslogHandler.java#L1141], I have noticed that the month number is tested for double digit before being offset, so a zero is added for October (month 9 for java.util.Calendar), then offset for proper display (month "10" for ISO8601), resulting in a three-digit month ("010").



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list