// Hack hack hack: time constraints
if (logWriter == null) {
return;
}
LoggingContext context = LoggingContextAccessor.getLoggingContext();
// Hack hack hack: time constraints
if (context == null) {
return;
}
String[] traceLines = null;
if (event.getThrowableProxy() != null) {
final StackTraceElementProxy[] exc
= event.getThrowableProxy().getStackTraceElementProxyArray();
if (exc != null) {
traceLines = new String[exc.length];
for (int i = 0; i < traceLines.length; i++) {
traceLines[i] = exc[i].toString();
}
}
}
String msg = format.format(this.getLayout().doLayout(event),
traceLines, context, null);
logWriter.write(context.getLogPartition(), event.getLevel().toString(), msg);
}