1 Reply Latest reply on Nov 12, 2004 12:40 PM by bmelloni

    App logging in jBoss 3.2.6 log4j.xml

    bmelloni

      I am either going crazy or jBoss' handling of log4j.xml is not following standards. Please help.

      I have a webapp that I just ported to jBoss. Since jBoss wants to handle log4j configuration I removed the application log4j.properties and the initialization servlet. At this point the application logs fine, according to jBoss' level (INFO).

      Since I want to change the logging level for packages in the app, I went to log4j.xml and added a logger block (right before ) according to log4j's XML standards:



      <appender-ref ref="CONSOLE" />


      This was promptly ignored. So I went to the next level and created a new appender and category:












      <appender-ref ref="convergent"/>


      This was also promptly ignored, until I added a reference to the block, at which point ALL of jBoss' messages went to DEBUG level:


      <appender-ref ref="CONSOLE"/>
      <appender-ref ref="FILE"/>
      <appender-ref ref="convergent"/>


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

      Thanks in advance,

      B.