|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.util.logging.LoggingManager
public class LoggingManager
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
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 |
---|
protected static boolean isLogging
protected static LogManager logManager
protected static java.util.Properties props
protected static LoggingManager theInstance
Method Detail |
---|
public static LoggingManager getInstance()
public static Logger getLogger(java.lang.String loggerName)
loggerName,
- the name of the logger we requested. Typically the package/classname, i.e. examples.MyExampleprotected static void init()
public static void setProperties(java.util.Properties props)
props,
- the properties object holding the configuration information for log4j
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |