2 Replies Latest reply on Apr 19, 2013 7:40 AM by zhouyaguo

    Jboss as 7 SLF4J Jboss Logging Adapter

    max.charas

      Hello all!

      I'm currently experimenting a bit with logging in Jboss as 7.

       

      My first goal is to use SLF4J and bind this to Jboss Logging with an SLF4J Adapter. However I cant really get this to work.

       

      I was wondering if anyone has a nice little sample maven project that uses SLF4J and binds to Jboss Logging?

       

      Hope you all have a nice day,

      Max

        • 1. Re: Jboss as 7 SLF4J Jboss Logging Adapter
          jamezp

          There is no need to have an adapter for slf4j. You don't even package slf4j with your application. The server contains an implementation.

           

          --

          James R. Perkins

          • 2. Re: Jboss as 7 SLF4J Jboss Logging Adapter
            zhouyaguo

            Say jboss-as-7.2.0.Final, since we have the following modules, you only need to have slf4j-api,slf4j-jboss-logmanager in your pom.xml and set the scope to "provided".

             

            $JBOSS_HOME/modules/system/layers/base/org/slf4j/main/slf4j-api-1.7.2.jar

            $JBOSS_HOME/modules/system/layers/base/org/slf4j/impl/main/slf4j-jboss-logmanager-1.0.2.GA.jar

             

            note:

            1. slf4j-jboss-logmanager is used to redirect from slf4j to jboss-logmanager

            2. jboss-logmanager is based on jul(java util logging)