public class LogManager
extends java.lang.Object
| Constructor | Description |
|---|---|
LogManager() |
| Modifier and Type | Method | Description |
|---|---|---|
static Logger |
exists(java.lang.String name) |
Retrieves an already existing logger by name.
|
static java.util.Enumeration |
getCurrentLoggers() |
Retrieves all existing loggers.
|
static Logger |
getLogger(java.lang.Class clazz) |
Retrieves a logger by class.
|
static Logger |
getLogger(java.lang.String name) |
Retrieves a logger by name.
|
static Logger |
getLogger(java.lang.String name,
LoggerFactory factory) |
Retrieves a logger by name.
|
static Logger |
getRootLogger() |
Retrieves the root logger.
|
static void |
resetConfiguration() |
Asks to reset the logging configuration (will be ignored).
|
static void |
shutdown() |
Asks to shutdown the logging framework down (will be ignored).
|
public static Logger getRootLogger()
public static Logger getLogger(java.lang.String name)
name - Name of the loggerpublic static Logger getLogger(java.lang.String name, LoggerFactory factory)
name - Name of the loggerfactory - Logger factory (will be ignored)public static Logger getLogger(java.lang.Class clazz)
clazz - Class to logpublic static Logger exists(java.lang.String name)
name - Name of the loggernullpublic static java.util.Enumeration getCurrentLoggers()
public static void shutdown()
public static void resetConfiguration()
Copyright © 2023. All rights reserved.