2 Replies Latest reply on Sep 6, 2011 3:31 AM by simkam

    How to use Default Logging in Jboss 7

    smtrax

      So I tried in find out how to Logging to server.log file :

       

      1.) added  jboss-logging-3.0.0.GA.jar   (from /modules/org/jboss/logging)  to Java Build Path

       

      2.) how to use

      import org.jboss.logging.Logger;

      .

      .

      .

      public class X

      {

           private Logger log;

       

           public X()

           {

               log=Logger.getLogger(X.class);

           }

       

           public void test()

           {

                log.info("Test")

           }

       

      }

       

      It works and it's easy to use.

       

      But why the jboss-logging-3.0.0.GA.jar is not included in JBoss7 Runtime ? or how to make it? If it's posible ?Logging.jpg