org.apache.log.output
public abstract class AbstractOutputTarget extends AbstractTarget
| Modifier and Type | Field and Description |
|---|---|
protected Formatter |
m_formatter
Deprecated.
You should not be directly accessing this attribute
as it will become private next release
|
| Constructor and Description |
|---|
AbstractOutputTarget()
Parameterless constructor.
|
AbstractOutputTarget(Formatter formatter)
Creation of a new abstract output target instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown target.
|
protected void |
doProcessEvent(LogEvent event)
Process a log event.
|
Formatter |
getFormatter()
Deprecated.
Access to formatter is not advised and this method will be removed
in future iterations. It remains only for backwards compatability.
|
protected void |
open()
Startup log session.
|
protected void |
output(java.lang.String data)
Deprecated.
User should overide write() instead of output(). Output exists
for backwards compatability and will be removed in future.
|
void |
setFormatter(Formatter formatter)
Deprecated.
In future this method will become protected access.
|
protected void |
write(java.lang.String data)
Abstract method to write data.
|
error, getErrorHandler, isOpen, processEvent, setErrorHandlerprotected Formatter m_formatter
public AbstractOutputTarget()
public AbstractOutputTarget(Formatter formatter)
formatter - the formatter to applypublic Formatter getFormatter()
public void setFormatter(Formatter formatter)
formatter - the formatterprotected void write(java.lang.String data)
data - the data to be outputprotected void output(java.lang.String data)
data - the data to be outputprotected void doProcessEvent(LogEvent event)
doProcessEvent in class AbstractTargetevent - the event to processprotected void open()
open in class AbstractTargetpublic void close()
close in class AbstractTarget