Class RecordingLogger
java.lang.Object
org.eclipse.jgit.junit.http.RecordingLogger
- All Implemented Interfaces:
org.eclipse.jetty.util.log.Logger
Log warnings into an array for later inspection.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate static List<RecordingLogger.Warning> -
Constructor Summary
ConstructorsConstructorDescriptionConstructor forRecordingLogger.RecordingLogger(String name) Constructor forRecordingLogger. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidclear()Clear the warnings, automatically done byAppServer.setUp()voidDebug logvoidvoidvoidDebug logvoidvoidorg.eclipse.jetty.util.log.LoggergetName()static List<RecordingLogger.Warning> Get thewarnings.voidvoidInfovoidvoidInfovoidvoidbooleanvoidsetDebugEnabled(boolean enabled) voidWarningvoidvoidWarningvoidvoid
-
Field Details
-
warnings
-
name
-
-
Constructor Details
-
RecordingLogger
public RecordingLogger()Constructor forRecordingLogger. -
RecordingLogger
-
-
Method Details
-
clear
public static void clear()Clear the warnings, automatically done byAppServer.setUp() -
getWarnings
Get thewarnings.- Returns:
- the warnings (if any) from the last execution
-
getLogger
- Specified by:
getLoggerin interfaceorg.eclipse.jetty.util.log.Logger
-
getName
- Specified by:
getNamein interfaceorg.eclipse.jetty.util.log.Logger
-
warn
-
warn
-
warn
-
debug
-
debug
-
debug
-
info
-
info
-
isDebugEnabled
public boolean isDebugEnabled()- Specified by:
isDebugEnabledin interfaceorg.eclipse.jetty.util.log.Logger
-
setDebugEnabled
public void setDebugEnabled(boolean enabled) - Specified by:
setDebugEnabledin interfaceorg.eclipse.jetty.util.log.Logger
-
warn
-
warn
- Specified by:
warnin interfaceorg.eclipse.jetty.util.log.Logger
-
info
-
info
- Specified by:
infoin interfaceorg.eclipse.jetty.util.log.Logger
-
info
-
debug
-
debug
- Specified by:
debugin interfaceorg.eclipse.jetty.util.log.Logger
-
ignore
- Specified by:
ignorein interfaceorg.eclipse.jetty.util.log.Logger
-
debug
- Specified by:
debugin interfaceorg.eclipse.jetty.util.log.Logger
-