Package org.apache.log4j.config

Examples of org.apache.log4j.config.PropertyPrinter


*/
public class PrintProperties {
  public
  static
  void main(String[] args) {
    new PropertyPrinter(new PrintWriter(System.out), true);
  }
View Full Code Here


     */
    @Nonnull
    public String printLog4jEffectiveConfiguration() {
        try {
            StringWriter writer = new StringWriter();
            PropertyPrinter propertyPrinter = new PropertyPrinter(new PrintWriter(writer));
            propertyPrinter.print(new PrintWriter(writer));
            return writer.toString();
        } catch (RuntimeException e) {
            logger.warn("Exception generating log4j configuration", e);
            throw e;
        }
View Full Code Here

     */
    @Nonnull
    public String getLog4jConfiguration() {
        try {
            StringWriter writer = new StringWriter();
            PropertyPrinter propertyPrinter = new PropertyPrinter(new PrintWriter(writer));
            propertyPrinter.print(new PrintWriter(writer));
            return writer.toString();
        } catch (RuntimeException e) {
            logger.warn("Exception generating log4j configuration", e);
            throw e;
        }
View Full Code Here

TOP

Related Classes of org.apache.log4j.config.PropertyPrinter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.