Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#12562 closed Bugs (fixed)

boost::log syslog backend date formatting can have an unwanted extra space

Reported by: tag@… Owned by: Andrey Semashev
Milestone: To Be Determined Component: log
Version: Boost 1.62.0 Severity: Problem
Keywords: Cc:

Description

According to RFC3164, the day of month field in the syslog header timestamp should be formatted as two characters:

"If the day of the month is less

than 10, then it MUST be represented as a space and then the number. For example, the 7th day of August would be represented as "Aug 7", with two spaces between the "g" and the "7".

https://tools.ietf.org/html/rfc3164#section-4.1.2

I have submitted a pull request to fix this.

https://github.com/boostorg/log/pull/33

Change History (3)

comment:1 by Andrey Semashev, 6 years ago

Resolution: fixed
Status: newclosed

Merged, thanks.

comment:2 by tag@…, 6 years ago

Thanks for merging: can you advise if this fix will be merged into Boost 1.63? We also need the earlier fix to the same line of code.

https://github.com/boostorg/log/commit/084f848d1461f16c0a6871694076aa36995d4f80

comment:3 by Andrey Semashev, 6 years ago

Yes, it will be released in 1.63.

Note: See TracTickets for help on using tickets.