public final class LoggerFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
SUPPORTED_LOGGERS |
| Constructor and Description |
|---|
LoggerFactory() |
| 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(java.lang.Class<?> clazz)
This method returns an instance of Logger class for logging.
|
static Logger |
getLogger(java.lang.String category)
This method returns an instance of Logger class for logging.
|
static void |
setActiveLogger(java.lang.Class<? extends Logger> newLogger)
This method allows full control to set the active logger to a specific one.
|
public static void autoDetect()
public static Logger getLogger(java.lang.Class<?> clazz)
clazz - The Class you are using to log through.public static Logger getLogger(java.lang.String category)
category - The category you want your logs to go through.public static void setActiveLogger(java.lang.Class<? extends Logger> newLogger)
newLogger - The logger class to use.Copyright © 2010-2015. All Rights Reserved.