SLF4J logger.debug() does not get logged in JBoss 6

后端 未结 1 697
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 00:53

Context: JBoss Application Server 6

I am relying on slf4j-jboss-logmanager.jar to bind slf4j to the JBoss log manager.

All

1条回答
  •  情书的邮戳
    2020-12-16 01:18

    As from JBoss 6, the log manager and jboss-logging.xml are proprietary.

    The key is in the root-logger definition at the end of the config file:

    The default defintion caps all output to whatever hander at INFO level:

       
          
          
             
             
             
          
       
    

    Changing this to

       
          
          
    

    opens the gate for all possible DEBUG information.

    Probably too much DEBUG information. Therefore, I had to add some additional filters:

       
          
       
    
       
          
       
    
       
          
       
    
       
          
       
    
       
          
       
    
       
          
       
    

    0 讨论(0)
提交回复
热议问题