0 Replies Latest reply on Dec 1, 2008 8:34 PM by Ivan B

    getLog() returns null in EntityHome

    Ivan B Novice

      Hi,


      Can anyone suggest how to use logging in the following scenario?
      The problem is that getLog() returns null.


      Thanks,


      @Name("propertyOfferHome")
      public class PropertyOfferHome extends EntityHome<PropertyOffer> { 
      
         @Factory("propertyOffer")
          public PropertyOffer init() {
              PropertyOffer propertyOffer = getInstance();
              getLog().warn("propertyOffer's initCount: ", ++initCount);
              return propertyOffer;
          }