public final class TestLogger extends com.google.common.flogger.AbstractLogger<TestLogger.Api>
This class is mutable and not thread safe.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TestLogger.Api |
| Modifier and Type | Method and Description |
|---|---|
TestLogger.Api |
at(java.util.logging.Level level) |
TestLogger.Api |
at(java.util.logging.Level level,
long timestampNanos)
Logs at the given level, with the specified nanosecond timestamp.
|
static TestLogger |
create(com.google.common.flogger.backend.LoggerBackend backend)
Returns a test logger for the default logging API.
|
TestLogger.Api |
forceAt(java.util.logging.Level level)
Forces logging at the given level.
|
TestLogger.Api |
forceAt(java.util.logging.Level level,
long timestampNanos)
Forces logging at the given level, with the specified nanosecond timestamp.
|
public static TestLogger create(com.google.common.flogger.backend.LoggerBackend backend)
public TestLogger.Api at(java.util.logging.Level level)
at in class com.google.common.flogger.AbstractLogger<TestLogger.Api>public TestLogger.Api at(java.util.logging.Level level, long timestampNanos)
public TestLogger.Api forceAt(java.util.logging.Level level)
public TestLogger.Api forceAt(java.util.logging.Level level, long timestampNanos)