We use log4j + commons-logging in our current projects. Now we mirror log4j with Logback, so can we just replace log4j.properties with logback.xml or do we need to convert log4j to SLF4J?
as per the suggestion I saved the code, I have a code like this
import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.apache.log4j.Priority; public class LoggerUtil {
the above code is part of LoggerUtils.java, it is in commonutils. now there is an AccInqWeb module that uses LoggerUtils for such logs
LoggerUtil.info(LoggerUtil.APP_ACCT_INQ, AccountInqService.class, "searchAccountSnapshot", "method starts....");
I saved the LoggerUtils.java code as it is and turned on log4j-over-slf4.jar and deleted log4j.jar, now it compiled fine, and I deploy the commonutils module on the server, and I add add -Dlogback.configurationFile = C: \ u001 \ isuser \ tesbea \ user_projects \ domains \ iservices 10 \ resources \ logback.xml in setDomainEnv.cmd and logback jar I set the logback jar on the classpath, but I don't get any logs that we use WLS10.3.0, is there anything that I need to complete the configuration
source share