1 Reply Latest reply on Dec 21, 2007 12:59 PM by Pete Muir

    How to use log inside interceptor ?

    Diego Coronel Apprentice

      this probably isnt hard, but i didnt find any way to get seam log, anyone can help me?

      @Interceptor
      public class LogInterceptor {
      
       @Logger
       private static Log log;
      
       @AroundInvoke
       public Object checkLoggedIn(InvocationContext invocation) throws Exception {
       try {
       log.info("Executando operacao antes");
       return invocation.proceed();
       }
       finally {
       log.info("Executando operacao depois");
       }
       }
      
      }