public abstract class AbstractLoggingAspect
extends java.lang.Object
Before) have
to be implemented in subclasses to specify joint-points to intercept and call logJoinPoint(...) in it. Subclasses
have to have Aspect annotation to be able to act as Spring Aspect.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEBUG |
static java.lang.String |
DEFAULT_LOG_LEVEL |
static java.lang.String |
INFO |
static java.lang.String |
TRACE |
static java.lang.String |
WARN |
| Constructor and Description |
|---|
AbstractLoggingAspect() |
| Modifier and Type | Method and Description |
|---|---|
protected Logger |
getLogger() |
protected java.lang.String |
getLogInfoFromArgs(java.util.List<?> args)
Returns String representation of argument set of intercepted method.
|
protected java.lang.String |
getLogLevel() |
protected java.lang.String |
getLongSignatureName(JoinPoint joinPoint) |
protected java.lang.String |
getSignatureName(JoinPoint joinPoint) |
protected abstract boolean |
isEligibleForJoinPoint(JoinPoint joinPoint)
Checks if the
joinPoint is eligible to process. |
protected boolean |
isLoggingEligibleForJoinPoint(JoinPoint joinPoint)
Checks if the
joinPoint is eligible for logging. |
protected void |
logAtDebugLevel(java.lang.String signatureName,
java.lang.String logInfo) |
protected void |
logAtInfoLevel(java.lang.String signatureName,
java.lang.String logInfo) |
protected void |
logAtTraceLevel(java.lang.String signatureName,
java.lang.String logInfo) |
protected void |
logAtWarnLevel(java.lang.String signatureName,
java.lang.String logInfo) |
protected void |
logJoinPoint(JoinPoint joinPoint)
Does logging for the intercepted
joinPoint. |
void |
setLogLevel(java.lang.String logLevel) |
public static final java.lang.String DEBUG
public static final java.lang.String WARN
public static final java.lang.String TRACE
public static final java.lang.String INFO
public static final java.lang.String DEFAULT_LOG_LEVEL
protected Logger getLogger()
protected void logJoinPoint(JoinPoint joinPoint)
joinPoint.protected java.lang.String getSignatureName(JoinPoint joinPoint)
protected java.lang.String getLongSignatureName(JoinPoint joinPoint)
protected void logAtDebugLevel(java.lang.String signatureName,
java.lang.String logInfo)
protected void logAtTraceLevel(java.lang.String signatureName,
java.lang.String logInfo)
protected void logAtInfoLevel(java.lang.String signatureName,
java.lang.String logInfo)
protected void logAtWarnLevel(java.lang.String signatureName,
java.lang.String logInfo)
protected boolean isLoggingEligibleForJoinPoint(JoinPoint joinPoint)
joinPoint is eligible for logging.protected abstract boolean isEligibleForJoinPoint(JoinPoint joinPoint)
joinPoint is eligible to process.protected java.lang.String getLogInfoFromArgs(java.util.List<?> args)
protected java.lang.String getLogLevel()
public void setLogLevel(java.lang.String logLevel)
Copyright © 2018 SAP SE. All Rights Reserved.