Package org.eclipse.jgit.junit.http
Class RecordingLogger
- java.lang.Object
-
- org.slf4j.helpers.MarkerIgnoringBase
-
- org.eclipse.jgit.junit.http.RecordingLogger
-
- All Implemented Interfaces:
Serializable
,org.slf4j.Logger
public class RecordingLogger extends org.slf4j.helpers.MarkerIgnoringBase
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RecordingLogger.Warning
-
Constructor Summary
Constructors Constructor Description RecordingLogger()
Constructor forRecordingLogger
.RecordingLogger(String name)
Constructor forRecordingLogger
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
clear()
Clear the warnings, automatically done byAppServer.setUp()
void
debug(String msg)
void
debug(String format, Object arg)
void
debug(String format, Object... arguments)
void
debug(String format, Object arg1, Object arg2)
void
debug(String msg, Throwable t)
void
error(String msg)
void
error(String format, Object arg)
void
error(String format, Object... arguments)
void
error(String format, Object arg1, Object arg2)
void
error(String msg, Throwable t)
String
getName()
static List<RecordingLogger.Warning>
getWarnings()
Get thewarnings
.void
info(String msg)
void
info(String format, Object arg)
void
info(String format, Object... arguments)
void
info(String format, Object arg1, Object arg2)
void
info(String msg, Throwable t)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
protected Object
readResolve()
void
trace(String msg)
void
trace(String format, Object arg)
void
trace(String format, Object... arguments)
void
trace(String format, Object arg1, Object arg2)
void
trace(String msg, Throwable t)
void
warn(String msg)
void
warn(String format, Object arg)
void
warn(String format, Object... arguments)
void
warn(String format, Object arg1, Object arg2)
void
warn(String msg, Throwable t)
-
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn
-
-
-
-
Field Detail
-
name
protected String name
-
-
Constructor Detail
-
RecordingLogger
public RecordingLogger()
Constructor forRecordingLogger
.
-
RecordingLogger
public RecordingLogger(String name)
Constructor forRecordingLogger
.- Parameters:
name
-
-
-
Method Detail
-
clear
public static void clear()
Clear the warnings, automatically done byAppServer.setUp()
-
getWarnings
public static List<RecordingLogger.Warning> getWarnings()
Get thewarnings
.- Returns:
- the warnings (if any) from the last execution
-
isTraceEnabled
public boolean isTraceEnabled()
-
trace
public void trace(String msg)
-
isDebugEnabled
public boolean isDebugEnabled()
-
debug
public void debug(String msg)
-
isInfoEnabled
public boolean isInfoEnabled()
-
info
public void info(String msg)
-
isWarnEnabled
public boolean isWarnEnabled()
-
warn
public void warn(String msg)
-
isErrorEnabled
public boolean isErrorEnabled()
-
error
public void error(String msg)
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
readResolve
protected Object readResolve() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-