uk.ac.essex.common.util
Class Log4jInit

java.lang.Object
  extended by uk.ac.essex.common.util.Log4jInit

public class Log4jInit
extends java.lang.Object

Class to initialise the logj system using a configuration file loaded fro the classpath. The default name for this file is 'log4j.properties', though this can be changed though initLog4j(java.lang.String).


Constructor Summary
Log4jInit()
           
 
Method Summary
static void initLog4j()
          Initialise the logj system using a configuration file loaded from the classpath this uses the default file name 'log4j.properties'.
static void initLog4j(java.lang.String fileName)
          Initialise the logj system using a configuration file loaded from the classpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Log4jInit

public Log4jInit()
Method Detail

initLog4j

public static void initLog4j()
Initialise the logj system using a configuration file loaded from the classpath this uses the default file name 'log4j.properties'.


initLog4j

public static void initLog4j(java.lang.String fileName)
Initialise the logj system using a configuration file loaded from the classpath

Parameters:
fileName - - The file to load