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 String
private static List
<RecordingLogger.Warning> -
Constructor Summary
ConstructorsConstructorDescriptionConstructor forRecordingLogger
.RecordingLogger
(String name) Constructor forRecordingLogger
. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
clear()
Clear the warnings, automatically done byAppServer.setUp()
void
Debug logvoid
void
void
Debug logvoid
void
org.eclipse.jetty.util.log.Logger
getName()
static List
<RecordingLogger.Warning> Get thewarnings
.void
void
Infovoid
void
Infovoid
void
boolean
void
setDebugEnabled
(boolean enabled) void
Warningvoid
void
Warningvoid
void
-
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:
getLogger
in interfaceorg.eclipse.jetty.util.log.Logger
-
getName
- Specified by:
getName
in interfaceorg.eclipse.jetty.util.log.Logger
-
warn
Warning- Parameters:
msg
-arg0
-arg1
-
-
warn
- Specified by:
warn
in interfaceorg.eclipse.jetty.util.log.Logger
-
warn
Warning- Parameters:
msg
- warning message
-
debug
Debug log- Parameters:
msg
-arg0
-arg1
-
-
debug
- Specified by:
debug
in 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:
isDebugEnabled
in interfaceorg.eclipse.jetty.util.log.Logger
-
setDebugEnabled
public void setDebugEnabled(boolean enabled) - Specified by:
setDebugEnabled
in interfaceorg.eclipse.jetty.util.log.Logger
-
warn
- Specified by:
warn
in interfaceorg.eclipse.jetty.util.log.Logger
-
warn
- Specified by:
warn
in interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
info
in interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
info
in interfaceorg.eclipse.jetty.util.log.Logger
-
info
- Specified by:
info
in interfaceorg.eclipse.jetty.util.log.Logger
-
debug
- Specified by:
debug
in interfaceorg.eclipse.jetty.util.log.Logger
-
debug
- Specified by:
debug
in interfaceorg.eclipse.jetty.util.log.Logger
-
ignore
- Specified by:
ignore
in interfaceorg.eclipse.jetty.util.log.Logger
-
debug
- Specified by:
debug
in interfaceorg.eclipse.jetty.util.log.Logger
-