slf4j + java.util.logging: how to configure?

后端 未结 6 929
孤独总比滥情好
孤独总比滥情好 2021-01-01 09:35

I\'m trying to use slf4j + java.util.logging. I know how to set up the Java source code to do this via logger = LoggerFactory.getLogger(...) and logger.wa

6条回答
  •  情深已故
    2021-01-01 09:56

    There is no configuration in the slf4j layer. It is just an API, which the backend must provide the implementation for (more or less).

    To use java.util.logging as the slf4j backend, you must have slf4j-jdk14-mumle.jar from the slf4j distribution on your classpath, and do the magic listed in the javadoc to enable it. If not you will have a runtime error saying there is no slf4j implementation active.

提交回复
热议问题