Using slf4j instead of jul

Issue #81 closed
jjoannes created an issue

Did you consider using slf4j instead of jul? That would allow your user to choose the most appropriate logging library (in my case LogBack...).

Comments (3)

  1. Christian Schudt repo owner

    I did consider it, I even use slf4j in my other projects. However, for this library I prefer the built-in Java logger for simplicity. I don't do much logging anyway and I don't want to pull in an extra dependency for only a few log lines.

    You can however use the jul-to-slf4j bridge which redirects JUL to SLF4J. See http://www.slf4j.org/legacy.html

    http://www.slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html

    So, all JUL logging goes to SLF4J and eventually to LogBack.

  2. Log in to comment