Hacker News new | ask | show | jobs
by uriahc 3700 days ago
Yup. This is the best that I've found:

(Gradle dependencies format)

compile group: 'ch.qos.logback:logback-classic:1.1.3'

compile group: 'org.slf4j:jcl-over-slf4j:1.7.12'

compile group: 'org.slf4j:jul-to-slf4j:1.7.12'

compile group: 'org.slf4j:log4j-over-slf4j:1.7.12'

At least you only need to configure one logging subsystem then.

1 comments

slf4j API should be in the compile group. At minimum, logback-classic should be runtime, as should jul-to-slf4j.
Good points. This config is from an app - not a library.