public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
public PropertyPrinter(PrintWriter out, boolean doCapitalize) { this.out = out; this.doCapitalize = doCapitalize; print(out); out.flush(); }
@Test public void construct() throws Exception { Document actionDocument = Tools.parseRessource("action.xml"); Element e1 = actionDocument.createElementNS("http://jakarta.apache.org/log4j/", "log4j:configuration"); e1.setAttribute("debug", "true"); Element action = (Element) actionDocument.removeChild(actionDocument.getDocumentElement()); actionDocument.appendChild(e1); e1.appendChild(action); String name = "jrds.Logger thresold." + action.getAttribute("name"); action.setAttribute("name", name); Element loggerElem = actionDocument.createElement("logger"); loggerElem.setAttribute("name", name); Element appenderRef = actionDocument.createElement("appender-ref"); appenderRef.setAttribute("ref", name); e1.appendChild(loggerElem); loggerElem.appendChild(appenderRef); jrds.Util.serialize(actionDocument, System.out, null, null); DOMConfigurator.configure(actionDocument.getDocumentElement()); PropertyPrinter printer = new PropertyPrinter(new PrintWriter(System.out)); printer.print(new PrintWriter(System.out)); }
@Test public void hierarchy() throws Exception { Hierarchy h = new Hierarchy(new RootLogger(Level.ALL)); Document log4jdom = Tools.parseRessource("log4j.xml"); DOMConfigurator configurator = new DOMConfigurator(); configurator.doConfigure(log4jdom.getDocumentElement(), h); PropertyPrinter printer = new PropertyPrinter(new PrintWriter(System.out)); printer.print(new PrintWriter(System.out)); }