Class PropertyPrinter

    • Field Detail

      • numAppenders

        protected int numAppenders
      • appenderNames

        protected Hashtable appenderNames
      • layoutNames

        protected Hashtable layoutNames
      • doCapitalize

        protected boolean doCapitalize
    • Constructor Detail

      • PropertyPrinter

        public PropertyPrinter​(PrintWriter out)
      • PropertyPrinter

        public PropertyPrinter​(PrintWriter out,
                               boolean doCapitalize)
    • Method Detail

      • 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]+.
      • 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!

      • capitalize

        public static String capitalize​(String name)
      • main

        public static void main​(String[] args)