Summary: | log4j.appender.syslog does not limit syslog lines to 1024 chars | ||
---|---|---|---|
Product: | Log4j - Now in Jira | Reporter: | Holger <holgi80> |
Component: | Appender | Assignee: | log4j-dev <log4j-dev> |
Status: | RESOLVED FIXED | ||
Severity: | major | ||
Priority: | P2 | ||
Version: | 1.2 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | other |
Description
Holger
2007-04-11 04:03:54 UTC
Committed change in rev 530990. If character count on message exceeds 256, then byte count is checked and message is successively halved with added "..." until each packet is less than 1024 bytes. Added SyslogAppenderTest.testBigPackets to confirm that message is properly split. Made another modification in rev 531049. I hadn't allowed for the 3-5 characters in the PRI section that would be added later when checking if total package would exceed 1024 bytes. Also simplified "fixed" part of continuations and no longer include the facility name. Changed behavior is consistent with stack traces which do not repeat the facility name either. |