public final class AssertLogging
extends java.lang.Object
java.util.logging.| Modifier and Type | Class and Description |
|---|---|
static interface |
AssertLogging.Logs
A representation of the log records produced by
collectLogs(Logger, RunnableWhichThrows). |
| Modifier and Type | Method and Description |
|---|---|
static AssertLogging.Logs |
collectLogs(java.util.logging.Logger logger,
RunnableWhichThrows<java.lang.Exception> runnable)
Temporarily enables logging for the given
Logger, runs the runnable, and silently collects the
log records it produces. |
public static AssertLogging.Logs collectLogs(java.util.logging.Logger logger, RunnableWhichThrows<java.lang.Exception> runnable) throws java.lang.Exception
Logger, runs the runnable, and silently collects the
log records it produces.java.lang.ExceptionAssertLogging.Logs