Class LogManager


  • public class LogManager
    extends Object
    Simple LogManager that avoids the memory leak that the LogManager has by not keeping any references to any Logger objects.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Field Detail

      • m_LogManager

        protected static LogManager m_LogManager
        the singleton instance of the log manager.
    • Constructor Detail

      • LogManager

        protected LogManager()
        Initializes 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