use of org.opendaylight.infrautils.testutils.LogCapture in project infrautils by opendaylight.
the class RememberingLogger method error.
@Override
public void error(String format, Object... arguments) {
FormattingTuple mf = MessageFormatter.arrayFormat(format, arguments);
ERRORS.add(new LogCapture(ERROR, mf.getMessage(), mf.getThrowable()));
super.error(format, arguments);
}
use of org.opendaylight.infrautils.testutils.LogCapture in project infrautils by opendaylight.
the class RememberingLogger method error.
@Override
public void error(String msg) {
ERRORS.add(new LogCapture(ERROR, msg, null));
super.error(msg);
}
use of org.opendaylight.infrautils.testutils.LogCapture in project infrautils by opendaylight.
the class RememberingLogger method error.
@Override
public void error(String msg, Throwable throwable) {
ERRORS.add(new LogCapture(ERROR, msg, throwable));
super.error(msg, throwable);
}
use of org.opendaylight.infrautils.testutils.LogCapture in project infrautils by opendaylight.
the class RememberingLogger method error.
@Override
public void error(Marker marker, String format, Object... arguments) {
if (!LogRule.getMarker().equals(marker)) {
FormattingTuple mf = MessageFormatter.arrayFormat(format, arguments);
ERRORS.add(new LogCapture(ERROR, mf.getMessage(), mf.getThrowable()));
}
super.error(marker, format, arguments);
}
Aggregations