fhm.edu.fem.util.logging
Class LoggingManager

java.lang.Object
  extended by fhm.edu.fem.util.logging.LoggingManager

public class LoggingManager
extends java.lang.Object

Class Description: Based on the log4j package. Takes care of initializing itself via the properties. This singleton should always be asked for a logger. Ensures that all requested loggers use the same configuration

Author:
Thomas Woellert (thomas@woellert.net), Stefan Weissbach (weissbst@gmx.de)

Field Summary
protected static boolean isLogging
           
protected static LogManager logManager
           
protected static java.util.Properties props
           
protected static LoggingManager theInstance
           
 
Method Summary
static LoggingManager getInstance()
          Get the sole instance
static Logger getLogger(java.lang.String loggerName)
          Create a new logger with the given name from our LoggingManager
protected static void init()
          Initialize the logging manager properly
static void setProperties(java.util.Properties props)
          Give the LoggingManager the properties object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isLogging

protected static boolean isLogging

logManager

protected static LogManager logManager

props

protected static java.util.Properties props

theInstance

protected static LoggingManager theInstance
Method Detail

getInstance

public static LoggingManager getInstance()
Get the sole instance

Returns:
theInstance

getLogger

public static Logger getLogger(java.lang.String loggerName)
Create a new logger with the given name from our LoggingManager

Parameters:
loggerName, - the name of the logger we requested. Typically the package/classname, i.e. examples.MyExample

init

protected static void init()
Initialize the logging manager properly


setProperties

public static void setProperties(java.util.Properties props)
Give the LoggingManager the properties object

Parameters:
props, - the properties object holding the configuration information for log4j