| Modifier and Type | Field and Description |
|---|---|
| private Formatter | m_formatter
Formatter for target. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | AbstractOutputTarget(final Formatter
the formatter to apply formatter)Creation of a new abstract output target instance. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | close()
Overrides org. Implements org. |
| protected void | doProcessEvent(LogEvent
the event to process event)Implements abstract org. |
| private String | |
| protected Formatter | |
| private String | |
| private String | |
| protected synchronized void | |
| protected void | |
| private void | |
| private void |
| m_formatter | back to summary |
|---|---|
| private Formatter m_formatter Formatter for target. | |
| AbstractOutputTarget | back to summary |
|---|---|
| public AbstractOutputTarget() Parameterless constructor. | |
| AbstractOutputTarget | back to summary |
|---|---|
| public AbstractOutputTarget(final Formatter formatter) Creation of a new abstract output target instance.
| |
| close | back to summary |
|---|---|
| public synchronized void close() Overrides org. Implements org. Shutdown target. Attempting to write to target after close() will cause errors to be logged. | |
| doProcessEvent | back to summary |
|---|---|
| protected void doProcessEvent(LogEvent event) Implements abstract org. Process a log event.
| |
| format | back to summary |
|---|---|
| private String format(final LogEvent event) Helper method to format an event into a string, using the formatter if available. | |
| getFormatter | back to summary |
|---|---|
| protected Formatter getFormatter() Returns the Formatter. | |
| getHead | back to summary |
|---|---|
| private String getHead() Helper method to retrieve head for log session. TODO: Extract from formatter
| |
| getTail | back to summary |
|---|---|
| private String getTail() Helper method to retrieve tail for log session. TODO: Extract from formatter
| |
| open | back to summary |
|---|---|
| protected synchronized void open() Overrides org. Startup log session. | |
| write | back to summary |
|---|---|
| protected void write(final String data) Abstract method to write data.
| |
| writeHead | back to summary |
|---|---|
| private void writeHead() Helper method to write out log head. The head initiates a session of logging. | |
| writeTail | back to summary |
|---|---|
| private void writeTail() Helper method to write out log tail. The tail completes a session of logging. | |