Expresso 5-6

com.jcorporate.expresso.kernel
Class LogManager

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.LogManager

public final class LogManager
extends Object

New LogManager implementation. Loads and configures log4j and also provides classloader reloading capabilities if you wish to have log4j low on the classloader hierarchy and want your webapps to reload ok.

Author:
Michael Rimov

Field Summary
static long lastChecked
           
 
Constructor Summary
protected LogManager()
          Default Constructor.
  LogManager(String logConfigFile, String logDirectory)
          Construct the log manager given the location of the file and log directory
  LogManager(URL logConfigFile, String logDirectory)
          Constructs and initializes the logging system given the URL of a config file [Classloader friendly] and destination of the log directory
 
Method Summary
static void destroy()
          Destroy the lastUsed Map
protected  void initialize(URL loggingConfiguration, String loggingDirectory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lastChecked

public static long lastChecked
Constructor Detail

LogManager

protected LogManager()
Default Constructor. Do not use


LogManager

public LogManager(String logConfigFile,
                  String logDirectory)
Construct the log manager given the location of the file and log directory

Parameters:
logConfigFile - may be null if you initialize log4j through some other way such as static class resource, or system property.
logDirectory - may be null if you don't expand any expresso-related macros in the logging file.

LogManager

public LogManager(URL logConfigFile,
                  String logDirectory)
Constructs and initializes the logging system given the URL of a config file [Classloader friendly] and destination of the log directory

Parameters:
logConfigFile - cannot be null
logDirectory - may be null if you don't expand any expresso-related macros in the logging file.
Method Detail

destroy

public static void destroy()
Destroy the lastUsed Map


initialize

protected void initialize(URL loggingConfiguration,
                          String loggingDirectory)

Expresso 5-6

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