public abstract class AbstractWrappingTarget extends AbstractTarget
org.apache.log.util.Closeable.Closeable| Modifier and Type | Field and Description |
|---|---|
private boolean |
m_closeWrapped |
private LogTarget |
m_wrappedLogTarget |
| Constructor and Description |
|---|
AbstractWrappingTarget(LogTarget logTarget)
Creation of a new wrapping log target.
|
AbstractWrappingTarget(LogTarget logTarget,
boolean closeWrappedTarget)
Creation of a new wrapping log target.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Shutdown target.
|
protected LogTarget |
getLogTarget()
Return the target for subclasses
|
doProcessEvent, getErrorHandler, isOpen, open, processEvent, setErrorHandlerprivate final boolean m_closeWrapped
private final LogTarget m_wrappedLogTarget
public AbstractWrappingTarget(LogTarget logTarget, boolean closeWrappedTarget)
logTarget - the underlying targetcloseWrappedTarget - boolean flag indicating whether the wrapped log target
should be closed when this target is closed. Note: This flag has no
effect unless the underlying target implements org.apache.log.util.Closeable.Closeablepublic AbstractWrappingTarget(LogTarget logTarget)
logTarget - the underlying targetpublic void close()
AbstractTargetclose in interface Closeableclose in class AbstractTargetprotected final LogTarget getLogTarget()