Bug 49177 - SyslogAppender: Make the maximum package size configurable
SyslogAppender: Make the maximum package size configurable
Status: NEW
Product: Log4j
Classification: Unclassified
Component: Appender
1.2
All All
: P2 enhancement
: ---
Assigned To: log4j-dev
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2010-04-23 11:43 UTC by Stephan
Modified: 2012-03-16 15:02 UTC (History)
0 users



Attachments
Added patch for configurable MaxPackageSize (698 bytes, patch)
2010-04-28 05:30 UTC, Stephan
Details | Diff
SyslogAppender and SyslogWriter patch (3.28 KB, patch)
2012-03-16 15:02 UTC, charlie
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephan 2010-04-23 11:43:41 UTC
With release 1.2.15 the maximum package size was restricted to 1024 bytes (see https://issues.apache.org/bugzilla/show_bug.cgi?id=42087). This was done because RFC 3164 defines this limit. On the other side some syslog implementations allow a custom message limit, e.g. syslog-ng uses the parameter 'log_msg_size()' (http://www.campin.net/syslog-ng/faq.html).

It would be nice if the maximum package size is configurable.
Comment 1 Stephan 2010-04-28 05:30:20 UTC
Created attachment 25364 [details]
Added patch for configurable MaxPackageSize
Comment 2 charlie 2012-03-16 15:02:15 UTC
Created attachment 28481 [details]
SyslogAppender and SyslogWriter patch

patch against trunk, rev 1301564.