Package reactor.test.util
Class TestLogger
java.lang.Object
reactor.test.util.TestLogger
- All Implemented Interfaces:
Logger
A
Logger that writes to ByteArrayOutputStream and allows retrieval of
the logs via getErrContent() and getOutContent(). Both buffers can
be cleared with reset().- Author:
- Simon Baslé
-
Nested Class Summary
Nested classes/interfaces inherited from interface reactor.util.Logger
Logger.ChoiceOfMessageSupplier -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface reactor.util.Logger
errorOrDebug, errorOrDebug, infoOrDebug, infoOrDebug, warnOrDebug, warnOrDebug
-
Constructor Details
-
TestLogger
public TestLogger() -
TestLogger
public TestLogger(boolean logCurrentThreadName)
-
-
Method Details
-
getName
-
getErrContent
-
getOutContent
-
reset
public void reset() -
isTraceEnabled
public boolean isTraceEnabled()- Specified by:
isTraceEnabledin interfaceLogger
-
trace
-
trace
-
trace
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceLogger
-
debug
-
debug
-
debug
-
isInfoEnabled
public boolean isInfoEnabled()- Specified by:
isInfoEnabledin interfaceLogger
-
info
-
info
-
info
-
isWarnEnabled
public boolean isWarnEnabled()- Specified by:
isWarnEnabledin interfaceLogger
-
warn
-
warn
-
warn
-
isErrorEnabled
public boolean isErrorEnabled()- Specified by:
isErrorEnabledin interfaceLogger
-
error
-
error
-
error
-
isLogCurrentThreadName
public boolean isLogCurrentThreadName()
-