org.apache.commons.proxy.interceptor.logging
Class Slf4jInterceptor
java.lang.Object
org.apache.commons.proxy.interceptor.logging.AbstractLoggingInterceptor
org.apache.commons.proxy.interceptor.logging.Slf4jInterceptor
- All Implemented Interfaces:
- Serializable, Interceptor
public class Slf4jInterceptor
- extends AbstractLoggingInterceptor
An interceptor which logs method invocations using an SLF4J Logger at the
"trace" logging level.
- Since:
- 1.1
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Slf4jInterceptor
public Slf4jInterceptor(Class clazz)
Slf4jInterceptor
public Slf4jInterceptor(String loggerName)
isLoggingEnabled
protected boolean isLoggingEnabled()
- Specified by:
isLoggingEnabled in class AbstractLoggingInterceptor
logMessage
protected void logMessage(String message)
- Specified by:
logMessage in class AbstractLoggingInterceptor
logMessage
protected void logMessage(String message,
Throwable t)
- Specified by:
logMessage in class AbstractLoggingInterceptor
Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.