class ExceptionConverter extends ClassicConverter {

    @Override
    public String convert(final ILoggingEvent loggingEvent) {
        return Optional.ofNullable(loggingEvent)
                .map(this::getExceptionData)
                .orElse(NO_MSG);
    }

}