@@ -0,0 +1,1142 @@
+package org.restexpress.pipeline.observer;%0A%0Aimport org.restexpress.Request;%0Aimport org.restexpress.Response;%0Aimport org.restexpress.pipeline.MessageObserver;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0A/**%0A * %7B@link Slf4fErrorLogMessageObserver%7D implements a %7B@link MessageObserver%7D to%0A * log error using SLF4J.%0A * %0A * @author %3Ca href=%22mailto:jguibert@intelligents-ia.com%22 %3EJerome Guibert%3C/a%3E%0A * %0A */%0Apublic class Slf4fErrorLogMessageObserver extends BaseMessageObserver %7B%0A%0A%09private final Logger logger;%0A%0A%09/**%0A%09 * Build a new instance of %7B@link Slf4fErrorLogMessageObserver%7D using a%0A%09 * logger created on %7B@link Slf4fErrorLogMessageObserver#getClass()%7D.%0A%09 */%0A%09public Slf4fErrorLogMessageObserver() %7B%0A%09%09super();%0A%09%09logger = LoggerFactory.getLogger(Slf4fErrorLogMessageObserver.class);%0A%09%7D%0A%0A%09/**%0A%09 * Build a new instance of %7B@link Slf4fErrorLogMessageObserver%7D .%0A%09 * %0A%09 * @param logger%0A%09 */%0A%09public Slf4fErrorLogMessageObserver(Logger logger) %7B%0A%09%09super();%0A%09%09this.logger = logger;%0A%09%7D%0A%0A%09@Override%0A%09public void onException(Throwable exception, Request request, Response response) %7B%0A%09%09logger.error(%22restexpress error%22, exception);%0A%09%7D%0A%7D%0A

add SLF4J message observer