@Test public void testSetPrintStream() throws Throwable { SimpleLogListener simpleLogListener = new SimpleLogListener(); PrintStream p = new PrintStream(new ByteArrayOutputStream(), true); simpleLogListener.setPrintStream(p); assertSame(p, simpleLogListener.p, "simpleLogListener.p"); }
public synchronized void setPrintStream (PrintStream p) { this.p = p; if (writer != null) { writer.setPrintStream(p); } }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized void setPrintStream (PrintStream p) { this.p = p; if (writer != null) { writer.setPrintStream(p); } } }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized void setPrintStream (PrintStream p) { this.p = p; if (writer != null) { writer.setPrintStream(p); } } SimpleLogListener();  SimpleLogListener(PrintStream p); }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized void setPrintStream (PrintStream p) { this.p = p; if (writer != null) { writer.setPrintStream(p); } } SimpleLogListener();  SimpleLogListener(PrintStream p); synchronized void setPrintStream(PrintStream p); synchronized void close(); synchronized LogEvent log(LogEvent ev); @Override void accept(LogEventWriter writer); @Override void setConfiguration(Element e); }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized void setPrintStream (PrintStream p) { this.p = p; if (writer != null) { writer.setPrintStream(p); } } SimpleLogListener();  SimpleLogListener(PrintStream p); synchronized void setPrintStream(PrintStream p); synchronized void close(); synchronized LogEvent log(LogEvent ev); @Override void accept(LogEventWriter writer); @Override void setConfiguration(Element e);  }