Package jetbrains.buildServer
Class TestLogger
- java.lang.Object
-
- jetbrains.buildServer.TestLogger
-
public class TestLogger extends Object
- Author:
- Pavel.Sher Date: 05.03.2008
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestLogger.AssertOnce
static interface
TestLogger.LogChecker
-
Constructor Summary
Constructors Constructor Description TestLogger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCheck(TestLogger.LogChecker checker)
void
clearChecks()
boolean
clearFailure()
void
disableDebug()
void
doNotFailOnErrorMessages()
StringBuilder
enableAndRecordDebugLog()
void
enableDebug()
void
enableDebug(String category)
void
enableInfo()
void
failOnWarnsWithExceptions()
Throwable
getFailure()
void
log(String message)
void
onSuiteStart()
void
onTestFinish(boolean raiseErrorIfOccurred)
void
onTestStart()
void
raiseErrorIfOccurred()
void
setLogLevel(org.apache.log4j.Level level)
void
setLogLevel(org.apache.log4j.Level level, String category)
void
setLogMessagesPrefixer(FuncThrow<String,RuntimeException> logMessagePrefix)
-
-
-
Method Detail
-
enableInfo
public void enableInfo()
-
enableDebug
public void enableDebug()
-
enableDebug
public void enableDebug(@NotNull String category)
-
doNotFailOnErrorMessages
public void doNotFailOnErrorMessages()
-
enableAndRecordDebugLog
@NotNull public StringBuilder enableAndRecordDebugLog()
-
setLogMessagesPrefixer
public void setLogMessagesPrefixer(@NotNull FuncThrow<String,RuntimeException> logMessagePrefix)
-
disableDebug
public void disableDebug()
-
failOnWarnsWithExceptions
public void failOnWarnsWithExceptions()
-
setLogLevel
public void setLogLevel(org.apache.log4j.Level level)
-
setLogLevel
public void setLogLevel(@NotNull org.apache.log4j.Level level, @NotNull String category)
-
log
public void log(String message)
-
onSuiteStart
public void onSuiteStart()
-
onTestStart
public void onTestStart()
-
onTestFinish
public void onTestFinish(boolean raiseErrorIfOccurred)
-
raiseErrorIfOccurred
public void raiseErrorIfOccurred()
-
clearFailure
public boolean clearFailure()
-
getFailure
public Throwable getFailure()
-
addCheck
public void addCheck(@NotNull TestLogger.LogChecker checker)
-
clearChecks
public void clearChecks()
-
-