APISonar


org.apache.camel.processor.Logger.log

> org > apache > camel > processor > Logger > log
org APIs apache APIs camel APIs processor APIs Logger APIs log APIs

Example 1
private final Logger logger;

    public void handleException(String message, Exchange exchange, Throwable exception) {
        String msg = ExchangeHelper.createExceptionMessage(message, exchange, exception);
        if (isCausedByRollbackExchangeException(exception)) {
            // do not log stacktrace for intended rollbacks
            logger.log(msg);
        } else {
            logger.log(msg, exception);
        }
    }