Class LoggingInterceptor<M extends Message>

java.lang.Object
org.axonframework.messaging.core.interception.LoggingInterceptor<M>
Type Parameters:
M - The message type this interceptor can process.
All Implemented Interfaces:
MessageDispatchInterceptor<M>, MessageHandlerInterceptor<M>

public class LoggingInterceptor<M extends Message> extends Object implements MessageDispatchInterceptor<M>, MessageHandlerInterceptor<M>
A MessageDispatchInterceptor and MessageHandlerInterceptor implementation that logs dispatched and incoming messages, and their result, to a Logger.

Allows configuration of the name under which the logger should log the statements.

Dispatched, incoming messages and successful executions are logged at the INFO level. Processing errors are logged using the WARN level.

Since:
0.6.0
Author:
Allard Buijze