PTLog Demo - 1.0

util
Class ConfigLog4j

java.lang.Object
  extended byutil.ConfigLog4j

public class ConfigLog4j
extends java.lang.Object

Utility to configure Apache Log4j.


Constructor Summary
ConfigLog4j()
           
 
Method Summary
static void config(java.lang.String filename)
          Configure with specified filename.
static java.util.Set getKeySet()
          Get set of keys which will be used by Apache Log4j.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigLog4j

public ConfigLog4j()
Method Detail

config

public static void config(java.lang.String filename)
Configure with specified filename.

This sets "log4j.configuration" system property to specified filename.

Parameters:
filename - to be loaded by Apache Log4j framework

getKeySet

public static java.util.Set getKeySet()
Get set of keys which will be used by Apache Log4j.


PTLog Demo - 1.0