2 Replies Latest reply on Nov 12, 2004 3:28 PM by genman

    App logging with jBoss 3.2.6 and log4j.xml (repost)

    bmelloni

      Reposted due to forum bug loosing cut/pasted code:

      I am either going crazy or jBoss is not following log4j standards. Please help.

      I just ported a webapp to jBoss. The webapp uses log4j. Since jBoss wants to manage the log4j configuration I removed the log4j.properties and the startup servlet from the app. Logging works using jBoss' default INFO level from the log4j.xml logger.

      Since I want to have custom levels for various packages I did the normal thing and added a block to log4j.xml:



      <appender-ref ref="CONSOLE"/>


      This was promptly ignored. So I went to next level and ceated a new appender and category:
      - Appender is same as CONSOLE appender, named "convergent" and set value="DEBUG".
      - Category is:


      <appender-ref ref="convergent"/>


      This was again ignored until I added <appender-ref ref="convergent"> to the root block... but then all jBoss logs went to DEBUG, not just the ones for com.akuratus.convergent.

      What gives? Am I missing something, or is jBoss not behaving?

      Thanks in advance,

      B.