2 Replies Latest reply on Jul 27, 2010 8:48 AM by Alan Prado

    Log4j at JBossAS 6.0

    Alan Prado Newbie

      Hello JBoss Community,

       

      I'm new with JBoss, and web applications.

      I create an web service, using Tomcat. Then I migrate to JBossAS 6.0. But I couldn' t figure out  how to configure my logfile.

      I have to configure in my web application and get its context? How I get this context,

      Or I have to create an appender in jboss-log4j.xml? Where jboss-log4j.xml? I have to create it or its was replaced by jboss-logging.xml and I just have to append jboss-logging.xml.

      If someone have an exemplo or some tutorial,

      I'll be very gratefull.

       

      Cheers, Alan

        • 1. Re: Log4j at JBossAS 6.0
          jaikiran pai Master

          Alan,

           

           

          jboss-log4j.xml is no longer used/shipped in JBoss AS 6.x.

           

          Alan Prado wrote:

           


          I have to configure in my web application and get its context? How I get this context,

          Or I have to create an appender in jboss-log4j.xml? Where jboss-log4j.xml? I have to create it or its was replaced by jboss-logging.xml and I just have to append jboss-logging.xml.

          If someone have an exemplo or some tutorial,

          I'll be very gratefull.

           

           

          If you are using log4j in your application, then the best thing to do is, package your log4j.xml in your application and deploy it. Is that what you were looking for?

          1 of 1 people found this helpful
          • 2. Re: Log4j at JBossAS 6.0
            Alan Prado Newbie

            Hello Mr. jaikiran_pai,

             

            Thanks for response jaikiran_pai,

             

            Something like that, I just want to log my files either with log4j or using org.jboss.logging.Logger.

            What do you suggest? And how I have to proceed?

             

            Cheers, Alan