title: spring aspectj pointcut on logging with slf4j
body: <p>I'm working with spring 3.0.6. My app has lot of places where logging added (slf4j). Say I need to add some function on every serious error - it will be better for me to catch every call to <strong>error level logging</strong> and do may job after it - send mail to support with exception message, or smth like that - than manually add code to all that places in app. </p>
  
  <p>I ve created following class:</p>
  
  <pre><code>@Aspect
  public class LoggingWrapper {
  
      @Pointcut("execution (* org.slf4j.Logger.error(..))")
      public void logError() {
      }
  
      @AfterReturning("logError()")
      public void afterError() {
          //System.out.println("LOGERROR ASPECT AFTER");
          //send email...
      }
  }
  </code></pre>
  
  <p>In spring config:</p>
  
  <pre><code>&lt;aop:aspectj-autoproxy /&gt;
  &lt;bean id="loggingWrapper" class="com.app.services.LoggingWrapper"/&gt;
  </code></pre>
  
  <p>Aspect is working well with my classes, but for <strong>org.slf4j.Logger</strong> - nothing happened</p>