org.apache.log.util.Closeable.
org.apache.log.util.Closeable
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final LogTarget |
| Access | Constructor and Description |
|---|---|
| public | AbstractWrappingTarget(final LogTarget
the underlying target logTarget, final boolean boolean flag indicating whether the wrapped log target
should be closed when this target is closed. closeWrappedTarget)Note This flag has no
effect unless the underlying target implements Creation of a new wrapping log target. |
| public | AbstractWrappingTarget(final LogTarget
the underlying target logTarget)Creation of a new wrapping log target. |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Overrides org. Implements org. |
| protected final LogTarget |
| m_closeWrapped | back to summary |
|---|---|
| private final boolean m_closeWrapped | |
| m_wrappedLogTarget | back to summary |
|---|---|
| private final LogTarget m_wrappedLogTarget | |
| AbstractWrappingTarget | back to summary |
|---|---|
| public AbstractWrappingTarget(final LogTarget logTarget, final boolean closeWrappedTarget) Creation of a new wrapping log target.
| |
| AbstractWrappingTarget | back to summary |
|---|---|
| public AbstractWrappingTarget(final LogTarget logTarget) Creation of a new wrapping log target. The underlying log target will not be closed when this target is closed.
| |
| close | back to summary |
|---|---|
| public void close() Overrides org. Implements org. Doc from org. Shutdown target. Attempting to write to target after close() will cause errors to be logged. | |
| getLogTarget | back to summary |
|---|---|
| protected final LogTarget getLogTarget() Return the target for subclasses | |