public DefaultTransactionLogHandler(final DefaultTransactionLogHandlerConfig logConfig,
final ObjectMapper mapper) {
final LoggerContext loggerContext = (LoggerContext) LoggerFactory
.getILoggerFactory();
final PatternLayoutEncoder patternLayoutEncoder = new PatternLayoutEncoder();
patternLayoutEncoder
.setPattern("%date{\"yyyy-MM-dd HH:mm:ss.SSS z\",UTC} %msg%n");
patternLayoutEncoder.setContext(loggerContext);
patternLayoutEncoder.start();
final RollingFileAppender<ILoggingEvent> fileAppender = new RollingFileAppender<ILoggingEvent>();
fileAppender.setContext(loggerContext);
fileAppender.setAppend(true);
fileAppender.setEncoder(patternLayoutEncoder);