[logback-dev] [JIRA] Created: (LBCORE-228) Syslog messages over 64K are discarded
Pasi Eronen (JIRA)
noreply-jira at qos.ch
Mon Oct 24 19:09:12 CEST 2011
Syslog messages over 64K are discarded
Issue Type: Bug
Affects Versions: 0.9.30
Reporter: Pasi Eronen
Assignee: Logback dev list
SyslogAppenderBase truncates very long messages to 256k, which is not very useful limit, since SyslogOutputStream supports only UDP, which has maximum message size of 64k. Messages over 64k result in "java.io.IOException: Message too long" (from DatagramSocket.send, called from SyslogOutputStream.flush), but this exception is visible only in logger context status...
Proposed fix: truncate long messages instead of discarding them. More specifically, change MSG_SIZE_LIMIT in SyslogAppenderBase to 65000.
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators: http://jira.qos.ch/secure/Administrators.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the logback-dev