Class AbstractLoggingAspect
java.lang.Object
de.hybris.platform.ruleengineservices.aspect.AbstractLoggingAspect
- Direct Known Subclasses:
ActionLogger,RuleEvaluationLogger
Abstract class of Logging Aspect for intercepting calls of class methods and log it attributes. Method
isEligibleForJoinPoint must be implemented in subclasses. Method(s) with Aspect annotations (ex.
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.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.Loggerprotected StringgetLogInfoFromArgs(List<?> args) Returns String representation of argument set of intercepted method.protected Stringprotected StringgetLongSignatureName(org.aspectj.lang.JoinPoint joinPoint) protected StringgetSignatureName(org.aspectj.lang.JoinPoint joinPoint) protected abstract booleanisEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Checks if thejoinPointis eligible to process.protected booleanisLoggingEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Checks if thejoinPointis eligible for logging.protected voidlogAtDebugLevel(String signatureName, String logInfo) protected voidlogAtInfoLevel(String signatureName, String logInfo) protected voidlogAtTraceLevel(String signatureName, String logInfo) protected voidlogAtWarnLevel(String signatureName, String logInfo) protected voidlogJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Does logging for the interceptedjoinPoint.voidsetLogLevel(String logLevel)
-
Field Details
-
DEBUG
- See Also:
-
WARN
- See Also:
-
TRACE
- See Also:
-
INFO
- See Also:
-
DEFAULT_LOG_LEVEL
- See Also:
-
-
Constructor Details
-
AbstractLoggingAspect
public AbstractLoggingAspect()
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
logJoinPoint
protected void logJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Does logging for the interceptedjoinPoint. -
getSignatureName
-
getLongSignatureName
-
logAtDebugLevel
-
logAtTraceLevel
-
logAtInfoLevel
-
logAtWarnLevel
-
isLoggingEligibleForJoinPoint
protected boolean isLoggingEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Checks if thejoinPointis eligible for logging. -
isEligibleForJoinPoint
protected abstract boolean isEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint) Checks if thejoinPointis eligible to process. -
getLogInfoFromArgs
Returns String representation of argument set of intercepted method. -
getLogLevel
-
setLogLevel
-