public class LoggingInterceptor<T extends Message<?>> extends Object implements MessageHandlerInterceptor<T>
INFO level. Processing errors are logged
 using the WARN level.| Constructor and Description | 
|---|
LoggingInterceptor()
Initialize the LoggingInterceptor with the default logger name, which is the fully qualified class name of this
 logger. 
 | 
LoggingInterceptor(String loggerName)
Initialize the LoggingInterceptor with the given  
loggerName. | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
handle(UnitOfWork<? extends T> unitOfWork,
      InterceptorChain interceptorChain)
Invoked before a Message is handled by a designated  
MessageHandler. | 
public LoggingInterceptor(String loggerName)
loggerName. The actual logging implementation will
 use this name to decide the appropriate log level and location. See the documentation of your logging
 implementation for more information.loggerName - the name of the loggerpublic LoggingInterceptor()
LoggingInterceptor(String)public Object handle(UnitOfWork<? extends T> unitOfWork, InterceptorChain interceptorChain) throws Exception
MessageHandlerInterceptorMessageHandler.
 
 The interceptor is responsible for the continuation of the handling process by invoking the InterceptorChain.proceed() method on the given interceptorChain.
 
 The given unitOfWork contains contextual information. Any information gathered by interceptors
 may be attached to the unitOfWork.
 
 Interceptors are highly recommended not to change the type of the message handling result, as the dispatching
 component might expect a result of a specific type.handle in interface MessageHandlerInterceptor<T extends Message<?>>unitOfWork - The UnitOfWork that is processing the messageinterceptorChain - The interceptor chain that allows this interceptor to proceed the dispatch processException - any exception that occurs while handling the messageCopyright © 2010–2018. All rights reserved.