[jboss-jira] [JBoss JIRA] (LOGMGR-122) Syslog handler is not generating correct timestamp format
Ricardo Kagawa (JIRA)
issues at jboss.org
Thu Oct 1 10:35:02 EDT 2015
Ricardo Kagawa created LOGMGR-122:
-------------------------------------
Summary: 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
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