final class LogAdapter
extends java.lang.Object
LogFactory
and LogFactoryService
.
Detects the presence of Log4j 2.x / SLF4J, falling back to java.util.logging
.Modifier and Type | Class and Description |
---|---|
private static class |
LogAdapter.JavaUtilAdapter |
private static class |
LogAdapter.JavaUtilLog |
private static class |
LogAdapter.LocationResolvingLogRecord |
private static class |
LogAdapter.Log4jAdapter |
private static class |
LogAdapter.Log4jLog |
private static class |
LogAdapter.LogApi |
private static class |
LogAdapter.Slf4jAdapter |
private static class |
LogAdapter.Slf4jLocationAwareLog |
private static class |
LogAdapter.Slf4jLog<T extends Logger> |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LOG4J_SLF4J_PROVIDER |
private static java.lang.String |
LOG4J_SPI |
private static LogAdapter.LogApi |
logApi |
private static java.lang.String |
SLF4J_API |
private static java.lang.String |
SLF4J_SPI |
Modifier | Constructor and Description |
---|---|
private |
LogAdapter() |
Modifier and Type | Method and Description |
---|---|
static Log |
createLog(java.lang.String name)
Create an actual
Log instance for the selected API. |
private static boolean |
isPresent(java.lang.String className) |
private static final java.lang.String LOG4J_SPI
private static final java.lang.String LOG4J_SLF4J_PROVIDER
private static final java.lang.String SLF4J_SPI
private static final java.lang.String SLF4J_API
private static final LogAdapter.LogApi logApi