|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | 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.
Constructor Summary | |
AbstractOutputTarget()
Parameterless constructor. |
|
AbstractOutputTarget(Formatter formatter)
Creation of a new abstract output target instance. |
Method Summary | |
void |
close()
Shutdown target. |
protected void |
doProcessEvent(LogEvent event)
Process a log event. |
protected Formatter |
getFormatter()
Returns the Formatter. |
protected void |
open()
Startup log session. |
protected void |
write(java.lang.String data)
Abstract method to write data. |
Methods inherited from class org.apache.log.output.AbstractTarget |
getErrorHandler, isOpen, processEvent, setErrorHandler |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AbstractOutputTarget()
public AbstractOutputTarget(Formatter formatter)
formatter
- the formatter to applyMethod Detail |
protected Formatter getFormatter()
protected void write(java.lang.String data)
data
- the data to be outputprotected void doProcessEvent(LogEvent event)
doProcessEvent
in class AbstractTarget
event
- the event to processprotected void open()
open
in class AbstractTarget
public void close()
close
in interface Closeable
close
in class AbstractTarget
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |