How do I configure Spring and SLF4J so that I can get logging?

后端 未结 7 952
借酒劲吻你
借酒劲吻你 2020-12-07 17:52

I\'ve got a maven & spring app that I want logging in. I\'m keen to use SLF4J.

I want to put all my config files into a directory {classpath}/config including lo

7条回答
  •  执笔经年
    2020-12-07 18:03

    Use blow configuration for implementation of the JCL API on the classpath:

    
           
              org.springframework
              spring-context
              3.0.0.RELEASE
              runtime
              
                 
                    commons-logging
                    commons-logging
                 
              
           
           
              org.slf4j
              jcl-over-slf4j
              1.5.8
              runtime
           
           
              org.slf4j
              slf4j-api
              1.5.8
              runtime
           
           
              org.slf4j
              slf4j-log4j12
              1.5.8
              runtime
           
           
              log4j
              log4j
              1.2.14
              runtime
           
         
    

    for More information check here

提交回复
热议问题