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 Summary
Constructors Constructor Description LoggingAspect(org.springframework.core.env.Environment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
logAfterThrowing(org.aspectj.lang.JoinPoint joinPoint, Throwable e)
Advice that logs methods throwing exceptions.Object
logAround(org.aspectj.lang.ProceedingJoinPoint joinPoint)
Advice that logs when a method is entered and exited.void
loggingPointcut()
Pointcut that matches all repositories, services and Web REST endpoints.
-
-
-
Method Detail
-
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.
-
-