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
Post a Comment