blurb/log4j — pull request #1 by vasanthelavarasan (2012-11-15 19:21:03+00:00)
Title: PS-264 Added ThrowableConversionPattern option for SyslogAppender

Adding the ability to append additional information to log messages during java exceptions. When encountering a log event of type throwable, and given a layout that ignores throwable, SyslogAppender by default will output a multiline stacktrace with only the HEADER.

One can define the property option ThrowableConversionPattern for SyslogAppender with any conversion pattern supported by PatternLayout.

Sample log4j definition:
log4j.appender.SYSLOG=org.apache.log4j.net.SyslogAppender
log4j.appender.SYSLOG.SyslogHost=127.0.0.1
log4j.appender.SYSLOG.facility=LOCAL3
log4j.appender.SYSLOG.Header=true
log4j.appender.SYSLOG.ThrowableConversionPattern=%X{PID}
log4j.appender.SYSLOG.layout=org.apache.log4j.PatternLayout
log4j.appender.SYSLOG.layout.ConversionPattern=%d %-5p: %m%n