Package adams.core.logging
Class LogManager
- java.lang.Object
-
- adams.core.logging.LogManager
-
public class LogManager extends Object
Simple LogManager that avoids the memory leak that theLogManager
has by not keeping any references to anyLogger
objects.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected static LogManager
m_LogManager
the singleton instance of the log manager.
-
Constructor Summary
Constructors Modifier Constructor Description protected
LogManager()
Initializes the log manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Logger
getLogger(String name)
Returns a logger for the name.Enumeration<String>
getLoggerNames()
Returns all logger names in the cache.static LogManager
getLogManager()
Returns the singleton.
-
-
-
Field Detail
-
m_LogManager
protected static LogManager m_LogManager
the singleton instance of the log manager.
-
-
Method Detail
-
getLogger
public Logger getLogger(String name)
Returns a logger for the name.- Parameters:
name
- the name of the logger- Returns:
- the logger
-
getLoggerNames
public Enumeration<String> getLoggerNames()
Returns all logger names in the cache.- Returns:
- the logger names
-
getLogManager
public static LogManager getLogManager()
Returns the singleton.- Returns:
- the log manager
-
-