buf.append("]]></log4j:message>\r\n");
// logback does not support NDC
// String ndc = event.getNDC();
ThrowableProxy tp = event.getThrowableProxy();
if (tp != null) {
buf.append(" <log4j:throwable><![CDATA[");
ThrowableDataPoint[] tdpArray = tp.getThrowableDataPointArray();
for (ThrowableDataPoint tdp : tdpArray) {
buf.append(tdp.toString());
buf.append("\r\n");
}
buf.append("]]></log4j:throwable>\r\n");