Hibernate 3.4 with slf4j and log4j

后端 未结 6 936
挽巷
挽巷 2020-12-05 18:15

I\'m attempting to upgrade from Hibernate 3.2 to 3.4, which apparently uses slf4j. Our project currently uses log4j. So my assumption is that I should be using the slf4j-log

6条回答
  •  春和景丽
    2020-12-05 18:49

    I had the same problem with displaytag version 1.2 including old slf4j. Changing the displaytag to have the exclusion:

    
      displaytag
      displaytag
      1.2
      
        
          org.slf4j
          jcl104-over-slf4j
        
      
    
    

    and adding the correct dependencies:

    
        org.slf4j
        slf4j-api
        1.5.6
    
    
    
       org.slf4j
       slf4j-log4j12
       1.5.6
    
    

    seemed to fix the problem.

提交回复
热议问题