3 Replies Latest reply on Jun 25, 2012 12:15 PM by James Perkins

    jboss AS 7.1.2 logging framwork

    krishnamaraju kanumuri Newbie

      hi guys,

       

      Our company planning to move our product form jboss 5.1 to jboss 7.1.2.  So i am investigating what are the changes between these two versions. I think i found many. My question is on logging.

       

      jboss 5.1 uses the jboss-logging.xml as the logging configuration file and it is using the log4j framework for the logging purpose . Now jboss 7.1.2 is using java.util.logging for its logging purpose.

       

      can push i the jboss AS 7.1.2 to use log4j for its internal logging purpose ? .

        • 1. Re: jboss AS 7.1.2 logging framwork
          James Perkins Master

          JBoss AS 7 acutally uses JBoss Logging with JBoss Log Manager, not J.U.L.

           

          Yes you can use log4j for internal logging purposes. You'll ideally want to configure your loggers/handlers in the logging subsystem, but you can also include a log4j configuration file (in 7.1.2 and 7.2.x) and logging subsystem will configure it for you.

           

          --

          James R. Perkins

          1 of 1 people found this helpful
          • 2. Re: jboss AS 7.1.2 logging framwork
            krishnamaraju kanumuri Newbie

            hi James R. Perkins,

             

            thanks for your quick reply. It helps me alot. My question is can i configure jboss server in such a way that jboss server use the log4j instead of jboss logmanager. I am concerned about the jboss server itself. is it possbile?

             

            --

            krishnamaraju kanumuri

            • 3. Re: jboss AS 7.1.2 logging framwork
              James Perkins Master

              krishnamaraju,

              No, the application server itself must use JBoss Log Manager. You can however configure your application to use log4j. In EAP 6 and future community releases (7.2.x or if you build 7.1.2 from source) it will just work if you include a log4j configuration file within your deployment.

               

              You can also use log4j in your application and configure it through the logging subsystem too. All that management tools allow runtime configuration loggers (categories) and handlers.

               

              --

              James R. Perkins