Class LoggingAspect
java.lang.Object
org.radarbase.management.aop.logging.LoggingAspect
Aspect for logging execution of service and repository Spring components.
By default, it only runs with the "dev" profile.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
logAfterThrowing
(org.aspectj.lang.JoinPoint joinPoint, Throwable e) Advice that logs methods throwing exceptions.logAround
(org.aspectj.lang.ProceedingJoinPoint joinPoint) Advice that logs when a method is entered and exited.void
Pointcut that matches all repositories, services and Web REST endpoints.
-
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
Advice that logs methods throwing exceptions.- Parameters:
joinPoint
- join point for advicee
- exception
-
logAround
Advice that logs when a method is entered and exited.- Parameters:
joinPoint
- join point for advice- Returns:
- result
- Throws:
Throwable
- throws IllegalArgumentException
-