2 Replies Latest reply on Nov 18, 2009 1:17 PM by Francisco Jose Peredo Noguez

    Is @Logger documentation correct?  Not finding classes in org.jboss.weld:weld-logger:1.0.0-CR2

    Steven Boscarine Apprentice

      Is the @Logger sample in Chapter 19 correct?  I can't seem to get it working. 
      The sample is:




      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);
         }
      }








      I added: 


      <dependency>
           <groupId>org.jboss.weld</groupId>
           <artifactId>weld-logger</artifactId>
           <version>1.0.0-CR2</version>
      </dependency>


      as the documentation specified and the system cannot find those classes or any annotation named @Logger.  The class isn't in the jar, either. 


      Did I do something wrong?


      I saw the feature in the Web Beans documentation and was very happy.  I'll admit, I was a tiny bit sad when it disappeared from the CR1 documentation and was then overjoyed to see it return in 1.0.  I hope it wasn't a typo that it was included in the Weld 1.0 user guide.