Class AbstractLoggingAspect

java.lang.Object
de.hybris.platform.ruleengineservices.aspect.AbstractLoggingAspect
Direct Known Subclasses:
ActionLogger, RuleEvaluationLogger

public abstract class AbstractLoggingAspect extends Object
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 Details

  • 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 intercepted joinPoint.
    • getSignatureName

      protected String getSignatureName(org.aspectj.lang.JoinPoint joinPoint)
    • getLongSignatureName

      protected String getLongSignatureName(org.aspectj.lang.JoinPoint joinPoint)
    • logAtDebugLevel

      protected void logAtDebugLevel(String signatureName, String logInfo)
    • logAtTraceLevel

      protected void logAtTraceLevel(String signatureName, String logInfo)
    • logAtInfoLevel

      protected void logAtInfoLevel(String signatureName, String logInfo)
    • logAtWarnLevel

      protected void logAtWarnLevel(String signatureName, String logInfo)
    • isLoggingEligibleForJoinPoint

      protected boolean isLoggingEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
      Checks if the joinPoint is eligible for logging.
    • isEligibleForJoinPoint

      protected abstract boolean isEligibleForJoinPoint(org.aspectj.lang.JoinPoint joinPoint)
      Checks if the joinPoint is eligible to process.
    • getLogInfoFromArgs

      protected String getLogInfoFromArgs(List<?> args)
      Returns String representation of argument set of intercepted method.
    • getLogLevel

      protected String getLogLevel()
    • setLogLevel

      public void setLogLevel(String logLevel)