3 Replies Latest reply on Nov 18, 2009 6:36 PM by gavin.king

    Weld Logger: Is that example correct?

      Hi!
      In the Weld 1.0.0 documentation at 19.1. Weld Logger I can read this example:


      import org.jboss.weld.annotation.Logger;
      import org.jboss.weld.log.Log;
      public class Checkout {
      private @Inject @Logger Log log;
      public void invoiceItems() {
      ShoppingCart cart;
      ...
      log.debug("Items invoiced for {0}", cart);
      }
      }
      



      But AFAIK there is no org.jboss.weld.log.Log class in Weld...


      I believe the correct code would be:


      import javax.inject.Inject;
      import org.slf4j.Logger;
      
      public class Checkout {
      private @Inject Logger logger;
      public void invoiceItems() {
      ShoppingCart cart;
      ...
      logger.debug("Items invoiced for {0}", cart);
      }
      }
      }
      
      



      Am I right? Should I submit a JIRA?