org.apache.log.output
public abstract class AbstractOutputTarget extends AbstractTarget
Field Summary | |
---|---|
protected Formatter | m_formatter
Formatter for target.
|
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. |
Formatter | getFormatter()
Retrieve the associated formatter.
|
protected void | open()
Startup log session.
|
protected void | output(String data)
Abstract method that will output event.
|
void | setFormatter(Formatter formatter)
Set the formatter.
|
protected void | write(String data)
Abstract method to write data.
|
Deprecated: You should not be directly accessing this attribute as it will become private next release
Formatter for target.Parameters: formatter the formatter to apply
Parameters: event the event to process
Deprecated: Access to formatter is not advised and this method will be removed in future iterations. It remains only for backwards compatability.
Retrieve the associated formatter.Returns: the formatter
Deprecated: User should overide write() instead of output(). Output exists for backwards compatability and will be removed in future.
Abstract method that will output event.Parameters: data the data to be output
Deprecated: In future this method will become protected access.
Set the formatter.Parameters: formatter the formatter
Parameters: data the data to be output