Save This Page
Home » slf4j-1.5.5 » org.apache » log4j » config » [javadoc | source]
org.apache.log4j.config
public class: PropertyPrinter [javadoc | source]
java.lang.Object
   org.apache.log4j.config.PropertyPrinter

All Implemented Interfaces:
    PropertyCallback

Prints the configuration of the log4j default hierarchy (which needs to be auto-initialized) as a propoperties file on a PrintWriter .
Field Summary
protected  int numAppenders     
protected  Hashtable appenderNames     
protected  Hashtable layoutNames     
protected  PrintWriter out     
protected  boolean doCapitalize     
Constructor:
 public PropertyPrinter(PrintWriter out) 
 public PropertyPrinter(PrintWriter out,
    boolean doCapitalize) 
Method from org.apache.log4j.config.PropertyPrinter Summary:
capitalize,   foundProperty,   genAppName,   isGenAppName,   main,   print,   printOptions,   printOptions,   printOptions
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.log4j.config.PropertyPrinter Detail:
 public static String capitalize(String name) 
 public  void foundProperty(Object obj,
    String prefix,
    String name,
    Object value) 
 protected String genAppName() 
 protected boolean isGenAppName(String name) 
    Returns true if the specified appender name is considered to have been generated, that is, if it is of the form A[0-9]+.
 public static  void main(String[] args) 
 public  void print(PrintWriter out) 
    Prints the configuration of the default log4j hierarchy as a Java properties file on the specified Writer.

    N.B. print() can be invoked only once!

 protected  void printOptions(PrintWriter out,
    Category cat) 
 protected  void printOptions(PrintWriter out,
    Logger cat) 
 protected  void printOptions(PrintWriter out,
    Object obj,
    String fullname)