Class LoggingAspect

java.lang.Object
org.powertac.visualizer.aop.logging.LoggingAspect

public class LoggingAspect
extends Object
Aspect for logging execution of service and repository Spring components. By default, it only runs with the "dev" profile.
  • Constructor Details

    • LoggingAspect

      public LoggingAspect​(org.springframework.core.env.Environment env)
  • Method Details

    • loggingPointcut

      public void loggingPointcut()
      Pointcut that matches all repositories, services and Web REST endpoints.
    • logAfterThrowing

      public void logAfterThrowing​(org.aspectj.lang.JoinPoint joinPoint, Throwable e)
      Advice that logs methods throwing exceptions.
    • logAround

      public Object logAround​(org.aspectj.lang.ProceedingJoinPoint joinPoint) throws Throwable
      Advice that logs when a method is entered and exited.
      Throws:
      Throwable