public class EventLoggingInterceptor extends Object implements MessageDispatchInterceptor<EventMessage<?>>
INFO level.| Constructor and Description |
|---|
EventLoggingInterceptor()
Initialize the LoggingInterceptor with the default logger name, which is the fully qualified class name of this
logger.
|
EventLoggingInterceptor(String loggerName)
Initialize the interceptor with the given
loggerName. |
| Modifier and Type | Method and Description |
|---|---|
BiFunction<Integer,EventMessage<?>,EventMessage<?>> |
handle(List<? extends EventMessage<?>> messages)
Apply this interceptor to the given list of
messages. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlepublic EventLoggingInterceptor()
EventLoggingInterceptor(String)public EventLoggingInterceptor(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 logger@Nonnull public BiFunction<Integer,EventMessage<?>,EventMessage<?>> handle(@Nonnull List<? extends EventMessage<?>> messages)
MessageDispatchInterceptormessages. This method returns a function that can be invoked
to obtain a modified version of messages at each position in the list.handle in interface MessageDispatchInterceptor<EventMessage<?>>messages - The Messages to pre-processCopyright © 2010–2023. All rights reserved.