Class BaseLogEventWriter
java.lang.Object
org.jpos.util.BaseLogEventWriter
- All Implemented Interfaces:
LogEventWriter
- Direct Known Subclasses:
MappingLogEventWriter
Abstract class for LogEventWriter implementations.
Ensures that derived classes close the PrintStream since some of them
may wrap it in an outer stream.
Default write implementation is what is currently used by SimpleLogListener
with an additional null check on the passed in LogEvent.
- Since:
- 2.1.4
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BaseLogEventWriter
public BaseLogEventWriter()
-
-
Method Details
-
setPrintStream
- Specified by:
setPrintStreamin interfaceLogEventWriter
-
close
- Specified by:
closein interfaceLogEventWriter
-
write
- Specified by:
writein interfaceLogEventWriter
-