@Override
protected void append(LogMessage logMessage) {
try {
GenericRecord datum = LoggingEvent.encode(logSchema, logMessage.getLoggingEvent(),
logMessage.getLoggingContext());
logFileWriter.append(ImmutableList.of(new LogWriteEvent(datum, logMessage.getLoggingEvent(),
logMessage.getLoggingContext())));
} catch (Throwable t) {
LOG.error("Got exception while serializing log event {}.", logMessage.getLoggingEvent(), t);
}
}