papertrail / remote_syslog_logger

Ruby Logger that sends directly to a remote syslog endpoint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UDP documentation is incorrect

bkeroackdsc opened this issue · comments

The README incorrectly declares that UDP messages >1500 bytes (eg, the most common MTU) cannot be transmitted. UDP packets of arbitrary length can be transmitted via IP fragmentation. The caveat being that if any one of the fragments is not received, the entire datagram cannot be reassembled and the message is lost.

Given this, I think there should be a config option to not truncate messages (with clear warnings that this is not RFC-compliant and the larger the message, the greater the chance of it being lost in transit).

EDIT: After looking through the code, the truncation is done in the syslog_protocol gem and therefore isn't relevant here. However it would be nice to have an option to not split the message by lines.