3 Replies Latest reply on Jul 11, 2002 8:42 PM by Doug Pham

    Jboss 3.0.0 and Log4j

    Doug Pham Newbie

      Hello,

      I recently downloaded the latest Jboss 3.0 and deploy a small application with it's own logging using Log4j. I used the famous Log4jInit servlet to load my new Log4j configuration for the application. The problem I encountered was that the console logging messages stopped, also the server logging stopped also. What did I do wrong? I have multiple applications and would like to have different log files for each of them. If possible, within an app, I want two logging files, one for users and one for admins. Any help would be greatly appreciated.


      Thanks
      JG

        • 1. Re: Jboss 3.0.0 and Log4j
          Doug Pham Newbie

          Hello Again,

          Is it possible to have different package or class append to to a seperate files? I created two file appenders and set the following in my log4j.xml file
          .
          .
          .


          <appender-ref ref="fappender2" />




          <appender-ref ref="console"/>
          <appender-ref ref="fappender"/>
          <appender-ref ref="fappender2"/>


          </log4j:configuration>

          The following will log all messages from all classes (jboss and my own app) to both file appenders. What do I have to set or do to make sure that only my.package logging will go to my 2nd file appender?


          Thank You
          JG

          • 2. Re: Jboss 3.0.0 and Log4j
            Doug Pham Newbie

            Hello Again,

            Is it possible to have different package or class append to to a seperate files? I created two file appenders and set the following in my log4j.xml file
            .
            .
            .


            <appender-ref ref="fappender2" />




            <appender-ref ref="console"/>
            <appender-ref ref="fappender"/>
            <appender-ref ref="fappender2"/>


            </log4j:configuration>

            The following will log all messages from all classes (jboss and my own app) to both file appenders. What do I have to set or do to make sure that only my.package logging will go to my 2nd file appender?


            Thank You
            JG

            • 3. Re: Jboss 3.0.0 and Log4j
              Doug Pham Newbie

              Hello Again,

              Is it possible to have different package or class append to to a seperate files? I created two file appenders and set the following in my log4j.xml file
              .
              .
              .


              <appender-ref ref="fappender2" />




              <appender-ref ref="console"/>
              <appender-ref ref="fappender"/>
              <appender-ref ref="fappender2"/>


              </log4j:configuration>

              The following will log all messages from all classes (jboss and my own app) to both file appenders. What do I have to set or do to make sure that only my.package logging will go to my 2nd file appender?


              Thank You
              JG