- 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 classRecordingLogger.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 voidclear()Clear the warnings, automatically done byAppServer.setUp()voiddebug(String msg)voiddebug(String format, Object arg)voiddebug(String format, Object... arguments)voiddebug(String format, Object arg1, Object arg2)voiddebug(String msg, Throwable t)voiderror(String msg)voiderror(String format, Object arg)voiderror(String format, Object... arguments)voiderror(String format, Object arg1, Object arg2)voiderror(String msg, Throwable t)StringgetName()static List<RecordingLogger.Warning>getWarnings()Get thewarnings.voidinfo(String msg)voidinfo(String format, Object arg)voidinfo(String format, Object... arguments)voidinfo(String format, Object arg1, Object arg2)voidinfo(String msg, Throwable t)booleanisDebugEnabled()booleanisErrorEnabled()booleanisInfoEnabled()booleanisTraceEnabled()booleanisWarnEnabled()protected ObjectreadResolve()voidtrace(String msg)voidtrace(String format, Object arg)voidtrace(String format, Object... arguments)voidtrace(String format, Object arg1, Object arg2)voidtrace(String msg, Throwable t)voidwarn(String msg)voidwarn(String format, Object arg)voidwarn(String format, Object... arguments)voidwarn(String format, Object arg1, Object arg2)voidwarn(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:
getNamein interfaceorg.slf4j.Logger
-
readResolve
protected Object readResolve() throws ObjectStreamException
- Throws:
ObjectStreamException
-
-