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

后端 未结 7 975
借酒劲吻你
借酒劲吻你 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条回答
  •  旧时难觅i
    2020-12-07 18:20

    Just for the sake of completeness, a logback-classic variant:

    
        ch.qos.logback
        logback-classic
        1.0.0
    
    
        org.slf4j
        jcl-over-slf4j
        1.6.6
        runtime
    
    

    Do not forget however to disable commons-logging dependency which sprouts from Spring dependency like in the accepted (Stijn's) answer.

提交回复
热议问题