Package com.storedobject.common
Class LogWriter.PrintWriterLogWriter
java.lang.Object
com.storedobject.common.LogWriter.PrintWriterLogWriter
- All Implemented Interfaces:
LogWriter
- Enclosing interface:
LogWriter
A LogWriter implementation that writes log messages to a
PrintWriter.
This class supports writing debug and error messages and flushing the underlying writer.- Author:
- Syam
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.storedobject.common.LogWriter
LogWriter.PrintWriterLogWriter -
Constructor Summary
ConstructorsConstructorDescriptionPrintWriterLogWriter(PrintWriter writer) Constructs a new PrintWriterLogWriter instance that writes log messages to the provided PrintWriter.PrintWriterLogWriter(Writer writer) Constructs a new PrintWriterLogWriter instance that writes log messages to the provided Writer. -
Method Summary
-
Constructor Details
-
PrintWriterLogWriter
Constructs a new PrintWriterLogWriter instance that writes log messages to the provided PrintWriter.- Parameters:
writer- the PrintWriter to which log messages will be written
-
PrintWriterLogWriter
Constructs a new PrintWriterLogWriter instance that writes log messages to the provided Writer. The Writer is wrapped in a PrintWriter for convenience.- Parameters:
writer- the Writer to which log messages will be written
-
-
Method Details
-
debug
-
error
-
error
-
flush
-