public class SimpleLogListener extends java.lang.Object implements LogListener, XmlConfigurable, java.util.function.Consumer<LogEventWriter>
Configurable
Constructor and Description |
---|
SimpleLogListener() |
SimpleLogListener(java.io.PrintStream p) |
Modifier and Type | Method and Description |
---|---|
void |
accept(LogEventWriter writer) |
void |
close() |
LogEvent |
log(LogEvent ev) |
void |
setConfiguration(org.jdom2.Element e) |
void |
setPrintStream(java.io.PrintStream p) |
public SimpleLogListener()
public SimpleLogListener(java.io.PrintStream p)
public void setPrintStream(java.io.PrintStream p)
public void close()
public LogEvent log(LogEvent ev)
log
in interface LogListener
public void accept(LogEventWriter writer)
accept
in interface java.util.function.Consumer<LogEventWriter>
public void setConfiguration(org.jdom2.Element e) throws ConfigurationException
setConfiguration
in interface XmlConfigurable
e
- Configuration elementConfigurationException
- on error