Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.2
Description
There is a extra space in the SyslogLayout so that that message is not compliant with the BSD format:
/** * Date format used if header = true. */ private final SimpleDateFormat dateFormat = new SimpleDateFormat("MMM dd HH:mm:ss ", Locale.ENGLISH);
Note the extra space at the end of the date format.
When this is used, another space is appended afterwards all the same:
addDate(event.getTimeMillis(), buf);
buf.append(' ');
This leads to incorrect data containing two spaces between the date field and the localHostname.