org.apache.log.output
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, setErrorHandler
private 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
.Closeable
public AbstractWrappingTarget(LogTarget logTarget)
logTarget
- the underlying targetpublic void close()
AbstractTarget
close
in interface Closeable
close
in class AbstractTarget
protected final LogTarget getLogTarget()
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.