java - How does logging work if I have slf4j-api, log4j, slf4j-log4j12 and commons-logging in classpath? -


in our build.gradle:

 dependencies {         // logging         compile "org.slf4j:slf4j-api:$slf4jversion"         compile "log4j:log4j:$log4jversion"         compile "org.slf4j:slf4j-log4j12:$slf4jversion"         ....      } 

in code use classes slf4j library. looks this:

also use spring framework. uses commons-logging inside. there no exclusions of commons-logging in our configuration. see spring logs in our log files. , don't understand how work (i see works). our configuration correct?

p.s.

from point of view should add jcl-over-slf4j , exclude commons-logging see works correctly.

is concatenation of circumstances expected behavior?


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -