public class LogManager extends Object
LogManager
object in an application. It maintains properties about loggers and manages the
hierarchy of loggers.Modifier | Constructor and Description |
---|---|
protected |
LogManager()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addLogger(Logger logger)
Add a named logger.
|
Logger |
getLogger(String name)
Find a named logger.
|
Enumeration<String> |
getLoggerNames()
Get an enumeration of known logger names.
|
static LogManager |
getLogManager()
Returns the LogManager object.
|
protected LogManager()
LogManager
in an application.public boolean addLogger(Logger logger)
The factory methods from Logger
call this method for each Logger they created.
logger
- the logger to registerNullPointerException
- if the logger name is null@Nullable public Logger getLogger(String name)
name
- name of the loggerpublic Enumeration<String> getLoggerNames()
public static LogManager getLogManager()