org.apache.log.output
Class AbstractWrappingTarget
- Closeable, ErrorAware, LogTarget
public abstract class AbstractWrappingTarget
Abstract base class for targets that wrap other targets. The class
provides functionality for optionally closing a wrapped target that
implements org.apache.log.util.Closeable.
void | close()- Shutdown target.
|
AbstractWrappingTarget
public AbstractWrappingTarget(LogTarget logTarget)
Creation of a new wrapping log target. The underlying log target will
not be closed when this target is closed.
logTarget - the underlying target
AbstractWrappingTarget
public AbstractWrappingTarget(LogTarget logTarget,
boolean closeWrappedTarget) Creation of a new wrapping log target.
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.
close
public void close()
Shutdown target.
Attempting to write to target after close() will cause errors to be logged.
- close in interface Closeable
- close in interface AbstractTarget