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.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3855025#3855025

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3855025


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to