Expresso 5-5-0

com.jcorporate.expresso.core.logging
Class LogManager

java.lang.Object
  extended bycom.jcorporate.expresso.core.logging.LogManager

Deprecated. since Expresso 5.1 The kernel system takes care of log4j initialization

public class LogManager
extends Object

Manager to load and initialize log4j

Since:
Expresso 3.0
Version:
$Revision: 1.23 $ $Date: 2003/12/18 07:23:26 $
Author:
Michael Rimov

Field Summary
protected static boolean initialized
          Deprecated.  
protected static org.apache.log4j.Logger setupLog
          Deprecated.  
protected static LogManager theManager
          Deprecated.  
 
Constructor Summary
protected LogManager()
          Deprecated.  
 
Method Summary
static void destroy()
          Deprecated. Method that destroys the Logging system so we can reload all the classes
static LogManager getInstance()
          Deprecated. Singleton instance Constructs the LogManager if it doesn't exist yet, and returns a handle to it.
static void instantiate()
          Deprecated. Call this function at the beginning of your application to initialize all the logging facilities.
static void reInitialize()
          Deprecated. Reinitializes the system.
static org.apache.log4j.Category setupLog()
          Deprecated. Return a basic log that can be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theManager

protected static LogManager theManager
Deprecated. 

initialized

protected static boolean initialized
Deprecated. 

setupLog

protected static org.apache.log4j.Logger setupLog
Deprecated. 
Constructor Detail

LogManager

protected LogManager()
Deprecated. 
Method Detail

reInitialize

public static void reInitialize()
Deprecated. 
Reinitializes the system. Mainly by setting the manager to null.


instantiate

public static void instantiate()
Deprecated. 
Call this function at the beginning of your application to initialize all the logging facilities.


getInstance

public static LogManager getInstance()
Deprecated. 

Singleton instance Constructs the LogManager if it doesn't exist yet, and returns a handle to it.

Note: LogManager.getInstance() should not be called until ConfigManager has read the configuration file since that contains the locationg of the logging directories and configuration directories.

Returns:
an instantiated and ready to roll LogManager

destroy

public static void destroy()
Deprecated. 
Method that destroys the Logging system so we can reload all the classes


setupLog

public static org.apache.log4j.Category setupLog()
Deprecated. 
Return a basic log that can be used

Returns:
Instantiated Log4j Category

Expresso 5-5-0

Please see www.jcorporate.com for information about new Expresso releases.