Using slf4j instead of jul
Issue #81
closed
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)
-
repo owner -
reporter Thanks for the advice. I'll use this jul-to-slf4 bridge.
-
reporter - changed status to closed
- Log in to comment
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.