ch.ige.edossier.util
Class ClientLogInit

java.lang.Object
  extended bych.ige.edossier.util.ClientLogInit

public class ClientLogInit
extends java.lang.Object

B32.03 - eDossier-Interceptions - Diplomarbeit an der Software-Schule Schweiz
Hilfsklasse zur Initialisierung des Logging (Log4j)

Copyright (c) 2004, Eidgenössisches Institut für Geistiges Eigentum

Version:
$Id: ClientLogInit.java,v 1.3 2004/10/22 01:58:26 bouquet Exp $
Author:
Anita Rueegsegger, Marc Bouquet

Field Summary
static java.lang.String DEFAULT_CONFIG
          the global default logging configuration file
static java.lang.String DEFAULT_DIRECTORY
          Default Verzeichnis für die Logging-Daten
 
Constructor Summary
ClientLogInit()
           
 
Method Summary
static void initLogging()
          initializes logging with the global default configuration file.
static void initLogging(java.lang.String defaultXMLConfigResource)
          Log4J configures itself with the config file provided with the 'log4j.configuration' property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONFIG

public static final java.lang.String DEFAULT_CONFIG
the global default logging configuration file

See Also:
Constant Field Values

DEFAULT_DIRECTORY

public static final java.lang.String DEFAULT_DIRECTORY
Default Verzeichnis für die Logging-Daten

See Also:
Constant Field Values
Constructor Detail

ClientLogInit

public ClientLogInit()
Method Detail

initLogging

public static void initLogging()
initializes logging with the global default configuration file.

See Also:
ClientLogInitalizer#initalizeLogging(String)

initLogging

public static void initLogging(java.lang.String defaultXMLConfigResource)
Log4J configures itself with the config file provided with the 'log4j.configuration' property. check if the file which is specified with that property is really available. otherwise a default config file is used. the 'log4j.configuration' property can be set in the JNLP launch file or with a -Dlog4j.configuration=file:///c:/Programme/Ige/Log/config/jipps_config.xml parameter to the JVM. NOTE: URL values like 'file://c:/xyz' are not supported by the java URL handler.

Parameters:
defaultXMLConfigResource - the XML config file in the classpath.