We are using log4j+commons-logging in our current projects. Now we are mirgrating from log4j to Logback, so can we just use replace log4j.properties with logback.xml or we have to convert log4j to SLF4J?
We are using log4j+commons-logging in our current projects. Now we are mirgrating from log4j
Share
You can use SLF4J and its
log4j-over-slf4jmodule.From the documentation:
You also need Logback behind SLF4J and Logback configuration (
logback.xml/logback.groovyetc.)A similar module exists for commons-logging also. (See Gradual migration to SLF4J from Jakarta Commons Logging (JCL).)