8 Replies Latest reply on Sep 1, 2010 9:16 AM by Pete Muir

    Weld logger sl4j

    nimo stephan Master

      Weld uses sl4j with cal10n as logging framework. (Does Weld uses log4j?)


      Does anyone knows a good tutorial for using this logger in Weld?


      In Seam 2, I use this:




      @In Logger log;





      I cannot find it in Seam 3.


      However, in documentation chapter 4.11, it is described a bit:




      class LogFactory {
      @Produces Logger createLogger(InjectionPoint injectionPoint) {
      return Logger.getLogger(injectionPoint.getMember().getDeclaringClass().getName());
      }
      }



      So I can use




      @Inject Logger log;




      Is it required to place the LogFactory in normal scoped bean (such as ApplicationScope)?