Package com.tangosol.util
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.
-
Field Summary
Fields inherited from class java.io.PrintWriter
out
-
Constructor Summary
ConstructorDescriptionLoggingWriter
(int nSev) Construct a PrintWriter that logs using theCacheFactory.log(java.lang.String, int)
method. -
Method Summary
Modifier and TypeMethodDescriptionvoid
println()
Log the accumulated String using the logging severity that this PrintWriter was configured with.Methods inherited from class java.io.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, write
Methods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
LoggingWriter
public LoggingWriter(int nSev) Construct a PrintWriter that logs using theCacheFactory.log(java.lang.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:
println
in classPrintWriter
-