Class 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 Detail

      • LoggingAspect

        public LoggingAspect​(org.springframework.core.env.Environment env)
    • 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.
      • logAround

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