public class LoggerFactory
extends java.lang.Object
Logger.
The instance will use SLF4J as underlying logging API, if it can be detected
on the classpath. Else, it will fall back to use Java Util Logging.
The enhanced placeholder syntax of SLF4J is always supported.| Modifier and Type | Class and Description |
|---|---|
static class |
LoggerFactory.DummyLogger |
static class |
LoggerFactory.JavaUtilLogger
All log messages will be pre-processed before given to the JUL logger to
support SLF4J-style placeholders and arguments semantics.
|
static class |
LoggerFactory.Slf4jLogger
All log messages will be pass through SLF4j as-is.
|
| Constructor and Description |
|---|
LoggerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static Logger |
getLogger(java.lang.Class<?> clazz) |
public static Logger getLogger(java.lang.Class<?> clazz)