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
public static class Base.LoggingWriter extends PrintWriter
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
Constructors Constructor Description LoggingWriter(int nSev)
Construct a PrintWriter that logs using theCacheFactory.log(java.lang.String, int)
method.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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 Detail
-
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 Detail
-
println
public void println()
Log the accumulated String using the logging severity that this PrintWriter was configured with.- Overrides:
println
in classPrintWriter
-
-