Description
Remove this method:
/** * Determine whether the log of <code>clazz</code> is Log4j implementation. * @param clazz a class to be determined * @return true if the log of <code>clazz</code> is Log4j implementation. */ public static boolean isLog4jLogger(Class<?> clazz) { if (clazz == null) { return false; } Logger log = LoggerFactory.getLogger(clazz); return log instanceof Log4jLoggerAdapter; }
This creates a dependency on Log4jLoggerAdapter (slf4j-log4j12) which means that any project which depends on hadoop-commons needs to carry this dependency as well. Such a simple use case and such a heavy dependency. The commons library should not depend on any specific implementation of SLF4J binding
Attachments
Attachments
Issue Links
- blocks
-
HADOOP-16716 slf4j-log4j12 Should Not Be Included as Dependency
- Patch Available