public final class MethodLogger extends Object
LoggingDecoratorImpl
to delegate out logging behavior to a
separate object.Constructor and Description |
---|
MethodLogger(org.slf4j.Logger logger,
ExceptionTracker exceptionTracker) |
Modifier and Type | Method and Description |
---|---|
void |
entry(MethodInvocation invocation)
Invoked when a method is first entered
|
void |
exit(MethodInvocation invocation)
Invoked when a method exits (possibly returning a value).
|
void |
fail(MethodInvocation invocation,
Throwable t)
Invoked when method invocation instead throws an exception.
|
boolean |
isDebugEnabled() |
public MethodLogger(org.slf4j.Logger logger, ExceptionTracker exceptionTracker)
public boolean isDebugEnabled()
public void entry(MethodInvocation invocation)
invocation
- identifies method invoked as well as parameters passed to methodpublic void exit(MethodInvocation invocation)
invocation
- identifies method invocation and result valuepublic void fail(MethodInvocation invocation, Throwable t)
invocation
- identifies method invocation which failedt
- exception throws by method invocation5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.