2 Replies Latest reply on Jul 21, 2009 5:49 PM by gseben

    [Fuse4] Correct dependencies & imports to have log4j working ?

      hi,

       

      I am trying to set-up a bundle correctly to have log4j Loggers working, but I have troubles selecting the proper dependencies. i have selected slf4 (I created my artifact from a Spring OSGi artifact), but it says I'm missing dependencies :

       

      log4j:log4j

      org.apache.log4j:com.springsource.org.apache.log4j

       

      If I exclude these artifacts from the org.slf4j:com.springsource.slf4j.log4j artifact, then the Bundle is OK but I cannot compile my project (does not find the Logger class from log4j).

       

      Could someone provide a valid snippet of pom.xml for using log4j ? Or should I use another logging mechanism instead ?