org.apache.log4j.config
Class PropertyPrinter
- PropertyGetter.PropertyCallback
public class PropertyPrinter
Prints the configuration of the log4j default hierarchy
(which needs to be auto-initialized) as a propoperties file
on a PrintWriter
.
static String | capitalize(String name)
|
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]+.
|
static void | main(String[] args)
|
void | print(PrintWriter out) - Prints the configuration of the default log4j hierarchy as a Java
properties file on the specified Writer.
|
protected void | printOptions(PrintWriter out, Object obj, String fullname)
|
protected void | printOptions(PrintWriter out, Logger cat)
|
appenderNames
protected Hashtable appenderNames
doCapitalize
protected boolean doCapitalize
layoutNames
protected Hashtable layoutNames
numAppenders
protected int numAppenders
out
protected PrintWriter out
PropertyPrinter
public PropertyPrinter(PrintWriter out)
PropertyPrinter
public PropertyPrinter(PrintWriter out,
boolean doCapitalize)
capitalize
public static String capitalize(String name)
genAppName
protected String genAppName()
isGenAppName
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]+.
main
public static void main(String[] args)
print
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!
printOptions
protected void printOptions(PrintWriter out,
Object obj,
String fullname)
printOptions
protected void printOptions(PrintWriter out,
Logger cat)
Copyright 2000-2005 Apache Software Foundation.