System.err.println(e);
}
}
private Line buildLine(LoggingEvent le) {
Line line = new BasicLine(le.toString());
line.setValue(LogConstants.DATE, new DateTime(le.getTimeStamp()));
line.setValue(LogConstants.CONTENT, le.getMessage());
line.setValue(LogConstants.EXCEPTION, join(le.getThrowableInformation().getThrowableStrRep()));
line.setValue(LogConstants.PRIORITY, Priority.getByName(le.getLevel().toString()));
line.setValue(LogConstants.LOGGER, le.getLoggerRemoteView().getName());
line.setValue(LogConstants.THREAD, le.getThreadName());
for (Map.Entry<String, String> e : le.getMDCPropertyMap().entrySet()) {
line.setValue(e.getKey(), e.getValue());
}
return line;
}