Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions core/src/main/java/org/apache/cxf/common/logging/LogUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,21 +105,14 @@ public String run() {
if (clsName.contains("NOPLogger")) {
//no real slf4j implementation, use j.u.l
cname = null;
} else if (clsName.contains("Log4j")) {
cname = "org.apache.cxf.common.logging.Log4jLogger";
} else if (clsName.contains("JCL")) {
cls = Class.forName("org.apache.commons.logging.LogFactory");
fcls = cls.getMethod("getFactory").invoke(null).getClass();
if (fcls.getName().contains("Log4j")) {
cname = "org.apache.cxf.common.logging.Log4jLogger";
}
} else if (clsName.contains("JDK14")
|| clsName.contains("pax.logging")) {
//both of these we can use the appropriate j.u.l API's
//directly and have it work properly
cname = null;
} else {
// Cannot really detect where it's logging so we'll
// Either we cannot really detect where it's logging
// or we don't want to use a custom logger, so we'll
// go ahead and use the Slf4jLogger directly
cname = "org.apache.cxf.common.logging.Slf4jLogger";
}
Expand Down