public class LogManager extends Object
Constructor and Description |
---|
LogManager() |
Modifier and Type | Method and Description |
---|---|
static Logger |
exists(String name)
Retrieves an already existing logger by name.
|
static Enumeration |
getCurrentLoggers()
Retrieves all existing loggers.
|
static Logger |
getLogger(Class clazz)
Retrieves a logger by class.
|
static Logger |
getLogger(String name)
Retrieves a logger by name.
|
static Logger |
getLogger(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(String name)
name
- Name of the loggerpublic static Logger getLogger(String name, LoggerFactory factory)
name
- Name of the loggerfactory
- Logger factory (will be ignored)public static Logger getLogger(Class clazz)
clazz
- Class to logpublic static Logger exists(String name)
name
- Name of the loggernull
public static Enumeration getCurrentLoggers()
public static void shutdown()
public static void resetConfiguration()
Copyright © 2020. All rights reserved.