@Test public void testLog() throws Throwable { LogEvent result = new SimpleLogListener(null).log(null); assertNull(result, "result"); }
public synchronized LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; } }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; } SimpleLogListener();  SimpleLogListener(PrintStream p); }
SimpleLogListener implements LogListener, XmlConfigurable, Consumer<LogEventWriter> { public synchronized LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; } 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 LogEvent log (LogEvent ev) { if (writer != null) { writer.write(ev); } else { if (p != null) { ev.dump(p, ""); p.flush(); } } return ev; } 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);  }