How to make Jersey to use SLF4J instead of JUL?

后端 未结 6 737
野的像风
野的像风 2020-12-25 12:22

I\'ve found a useful article that explains how to make Jersey to use SLF4J instead of JUL. Now my unit test looks like (and it works perfectly):

public class         


        
6条回答
  •  借酒劲吻你
    2020-12-25 13:10

    The best way to do it is through a custom Listener. Being initialized before JSF servlet it should configure jul-to-slf4j bridge in contextInitialized(ServletContextEvent).

提交回复
热议问题