Package org.eclipse.jgit.junit.http
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
Constructor forRecordingLogger.- Parameters:
name-
-
-
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
Warning- Parameters:
msg-arg0-arg1-
-
warn
- Specified by:
warnin interfaceorg.eclipse.jetty.util.log.Logger
-
warn
Warning- Parameters:
msg- warning message
-
debug
Debug log- Parameters:
msg-arg0-arg1-
-
debug
- Specified by:
debugin interfaceorg.eclipse.jetty.util.log.Logger
-
debug
Debug log- Parameters:
msg- debug message
-
info
Info- Parameters:
msg-arg0-arg1-
-
info
Info- Parameters:
msg-
-
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
- Specified by:
warnin interfaceorg.eclipse.jetty.util.log.Logger
-
warn
- Specified by:
warnin interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
infoin interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
infoin interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
infoin interfaceorg.eclipse.jetty.util.log.Logger
-
debug
- Specified by:
debugin interfaceorg.eclipse.jetty.util.log.Logger
-
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
-