public final class LoggerFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String[] |
SUPPORTED_LOGGERS |
| Modifier and Type | Method and Description |
|---|---|
static void |
autoDetect()
This method will auto detect the underlying logging framework available and set the current active logging
framework accordingly.
|
static Logger |
getLogger(Class<?> clazz)
This method returns an instance of Logger class for logging.
|
static Logger |
getLogger(String category)
This method returns an instance of Logger class for logging.
|
static void |
setActiveLogger(Class<? extends Logger> newLogger)
This method allows full control to set the active logger to a specific one.
|
public static final String[] SUPPORTED_LOGGERS
public static void autoDetect()
public static Logger getLogger(Class<?> clazz)
clazz - The Class you are using to log through.public static Logger getLogger(String category)
category - The category you want your logs to go through.Copyright © 2010–2019. All rights reserved.