|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.log.output.AbstractTarget | +--org.apache.log.output.AbstractOutputTarget
Abstract output target. Any new output target that is writing to a single connected resource should extend this class directly or indirectly.
Field Summary | |
protected Formatter |
m_formatter
Deprecated. You should not be directly accessing this attribute as it will become private next release |
Constructor Summary | |
AbstractOutputTarget()
Parameterless constructor. |
|
AbstractOutputTarget(Formatter formatter)
|
Method Summary | |
void |
close()
Shutdown target. |
protected void |
doProcessEvent(LogEvent event)
Process a log event, via formatting and outputting it. |
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. |
Methods inherited from class org.apache.log.output.AbstractTarget |
error, getErrorHandler, isOpen, processEvent, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Formatter m_formatter
Constructor Detail |
public AbstractOutputTarget()
public AbstractOutputTarget(Formatter formatter)
Method Detail |
public 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)
AbstractTarget
doProcessEvent
in class AbstractTarget
org.apache.log.output.AbstractTarget
event
- the log eventprotected void open()
open
in class AbstractTarget
public void close()
close
in class AbstractTarget
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |