Class Base.LoggingWriter
java.lang.Object
java.io.Writer
java.io.PrintWriter
com.tangosol.util.Base.LoggingWriter
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
- Enclosing class:
Base
Inner class for over-riding the destination of log(), out() and err()
calls.
- Author:
- cp 2000.08.02
-
Field Summary
Fields inherited from class PrintWriter
out -
Constructor Summary
ConstructorsConstructorDescriptionLoggingWriter(int nSev) Construct a PrintWriter that logs using theCacheFactory.log(String, int)method. -
Method Summary
Modifier and TypeMethodDescriptionvoidprintln()Log the accumulated String using the logging severity that this PrintWriter was configured with.Methods inherited from class PrintWriter
append, append, append, checkError, clearError, close, flush, format, format, print, print, print, print, print, print, print, print, print, printf, printf, println, println, println, println, println, println, println, println, println, setError, write, write, write, write, writeMethods inherited from class Writer
nullWriter
-
Constructor Details
-
LoggingWriter
public LoggingWriter(int nSev) Construct a PrintWriter that logs using theCacheFactory.log(String, int)method.- Parameters:
nSev- the severity to log messages with
-
-
Method Details
-
println
public void println()Log the accumulated String using the logging severity that this PrintWriter was configured with.- Overrides:
printlnin classPrintWriter
-