Class RememberingLogger
- java.lang.Object
-
- org.opendaylight.infrautils.testutils.internal.RememberingLogger
-
- All Implemented Interfaces:
org.slf4j.Logger
public class RememberingLogger extends Object
A slf4j logger implementation which remembers log events. This class is thread-safe.- Author:
- Michael Vorburger.ch
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 throwable)
void
debug(org.slf4j.Marker marker, String msg)
void
debug(org.slf4j.Marker marker, String format, Object arg)
void
debug(org.slf4j.Marker marker, String format, Object... arguments)
void
debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
debug(org.slf4j.Marker marker, String msg, Throwable throwable)
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 throwable)
void
error(org.slf4j.Marker marker, String msg)
void
error(org.slf4j.Marker marker, String format, Object arg)
void
error(org.slf4j.Marker marker, String format, Object... arguments)
void
error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
error(org.slf4j.Marker marker, String msg, Throwable throwable)
static com.google.common.collect.ImmutableList<LogCapture>
getErrorLogCaptures()
static Optional<String>
getErrorMessage(int howManyMessagesBack)
static Optional<Throwable>
getErrorThrowable(int howManyMessagesBack)
static Optional<String>
getLastErrorMessage()
static Optional<Throwable>
getLastErrorThrowable()
String
getName()
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 throwable)
void
info(org.slf4j.Marker marker, String msg)
void
info(org.slf4j.Marker marker, String format, Object arg)
void
info(org.slf4j.Marker marker, String format, Object... arguments)
void
info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
info(org.slf4j.Marker marker, String msg, Throwable throwable)
boolean
isDebugEnabled()
boolean
isDebugEnabled(org.slf4j.Marker marker)
boolean
isErrorEnabled()
boolean
isErrorEnabled(org.slf4j.Marker marker)
boolean
isInfoEnabled()
boolean
isInfoEnabled(org.slf4j.Marker marker)
boolean
isTraceEnabled()
boolean
isTraceEnabled(org.slf4j.Marker marker)
boolean
isWarnEnabled()
boolean
isWarnEnabled(org.slf4j.Marker marker)
static void
resetLastError()
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 throwable)
void
trace(org.slf4j.Marker marker, String msg)
void
trace(org.slf4j.Marker marker, String format, Object arg)
void
trace(org.slf4j.Marker marker, String format, Object... argArray)
void
trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
trace(org.slf4j.Marker marker, String msg, Throwable throwable)
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 throwable)
void
warn(org.slf4j.Marker marker, String msg)
void
warn(org.slf4j.Marker marker, String format, Object arg)
void
warn(org.slf4j.Marker marker, String format, Object... arguments)
void
warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
void
warn(org.slf4j.Marker marker, String msg, Throwable throwable)
-
-
-
Method Detail
-
getErrorLogCaptures
public static com.google.common.collect.ImmutableList<LogCapture> getErrorLogCaptures()
-
resetLastError
public static void resetLastError()
-
error
public void error(String msg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object arg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object arg1, Object arg2)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String format, Object... arguments)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(String msg, Throwable throwable)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String msg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
error
public void error(org.slf4j.Marker marker, String msg, Throwable throwable)
- Specified by:
error
in interfaceorg.slf4j.Logger
-
getName
public String getName()
- Specified by:
getName
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker)
- Specified by:
isTraceEnabled
in interfaceorg.slf4j.Logger
-
trace
public void trace(String msg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object arg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String format, Object... arguments)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(String msg, Throwable throwable)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String msg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String format, Object... argArray)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
trace
public void trace(org.slf4j.Marker marker, String msg, Throwable throwable)
- Specified by:
trace
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker)
- Specified by:
isDebugEnabled
in interfaceorg.slf4j.Logger
-
debug
public void debug(String msg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object arg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object arg1, Object arg2)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String format, Object... arguments)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(String msg, Throwable throwable)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String msg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
debug
public void debug(org.slf4j.Marker marker, String msg, Throwable throwable)
- Specified by:
debug
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker)
- Specified by:
isInfoEnabled
in interfaceorg.slf4j.Logger
-
info
public void info(String msg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(String format, Object arg1, Object arg2)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(String format, Object... arguments)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(String msg, Throwable throwable)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String msg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
info
public void info(org.slf4j.Marker marker, String msg, Throwable throwable)
- Specified by:
info
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker)
- Specified by:
isWarnEnabled
in interfaceorg.slf4j.Logger
-
warn
public void warn(String msg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(String format, Object... arguments)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(String format, Object arg1, Object arg2)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(String msg, Throwable throwable)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String msg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object arg1, Object arg2)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String format, Object... arguments)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
warn
public void warn(org.slf4j.Marker marker, String msg, Throwable throwable)
- Specified by:
warn
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker)
- Specified by:
isErrorEnabled
in interfaceorg.slf4j.Logger
-
-