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 theLogManagerhas by not keeping any references to anyLoggerobjects.- Version:
- $Revision$
- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Field Summary
Fields Modifier and Type Field Description protected static LogManagerm_LogManagerthe singleton instance of the log manager.
-
Constructor Summary
Constructors Modifier Constructor Description protectedLogManager()Initializes the log manager.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LoggergetLogger(String name)Returns a logger for the name.Enumeration<String>getLoggerNames()Returns all logger names in the cache.static LogManagergetLogManager()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
-
-