Hibernate 3.4 with slf4j and log4j

后端 未结 6 935
挽巷
挽巷 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:52

    After checking the version 1.5.6 POM for slf4j-log4j (and then slf4j-parent) you should be using log4j-1.2.14. The slf4j-log4j POM uses dependency management to inherit the appropriate version of log4j from the slf4j-parent POM.

    You shouldn't, however, need to include log4j as a specific dependency as it is already a dependency of slf4j-log4j. That may have been where you caused your problem.

提交回复
热议问题