@ crudo6, this will not work with Spring @AspectJ support using proxies - the reason is that the Spring method handles the @AspectJ annotation to create proxies, for example. if you @Around advise for your @PointCut("execution (for your class)") , then Spring will create a proxy for all beans in the Spring Context with types that correspond to the class in pointcut.
Now, since the slf4j classes are not part of the Spring context, a proxy will not be created for them, and your aspects will not take effect.
To make them work, you can either try to bind time in time, or compile time and use "@Pointcut" ("call (* org.slf4j.Logger.error (..))") instead of making it, so that any calls SLF4J may be intercepted by your advice. @Pointcut execution will require weaving slf4j libraries, which may not be possible.
source share