Skip navigation links
A C E F G H I K L M O S T V W 

A

add(MetadataKey<T>, T) - Method in class com.google.common.flogger.testing.FakeMetadata
 
addMetadata(MetadataKey<T>, Object) - Method in class com.google.common.flogger.testing.FakeLogData
 
areNotValidFor(FormatChar) - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
areValidFor(FormatChar) - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
AssertingLogger - Class in com.google.common.flogger.testing
Helper class for testing system backends, which need to mimic the JDK's log record.
AssertingLogger() - Constructor for class com.google.common.flogger.testing.AssertingLogger
 
assertLastLogged() - Method in class com.google.common.flogger.testing.FakeLoggerBackend
Asserts about the most recent logged entry.
assertLogCount(int) - Method in class com.google.common.flogger.testing.AssertingLogger
 
assertLogEntry(int, Level, String, Object...) - Method in class com.google.common.flogger.testing.AssertingLogger
 
assertLogged(int) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
Asserts about the Nth logged entry.
assertThat(FormatOptions) - Static method in class com.google.common.flogger.testing.FormatOptionsSubject
 
assertThat(FormatType) - Static method in class com.google.common.flogger.testing.FormatTypeSubject
 
assertThat(LogData) - Static method in class com.google.common.flogger.testing.LogDataSubject
 
assertThat(Metadata) - Static method in class com.google.common.flogger.testing.MetadataSubject
 
assertThrown(int, Throwable) - Method in class com.google.common.flogger.testing.AssertingLogger
 
at(Level) - Method in class com.google.common.flogger.testing.TestLogger
 
at(Level, long) - Method in class com.google.common.flogger.testing.TestLogger
Logs at the given level, with the specified nanosecond timestamp.

C

canFormat(Object) - Method in class com.google.common.flogger.testing.FormatTypeSubject
 
cannotFormat(Object) - Method in class com.google.common.flogger.testing.FormatTypeSubject
 
com.google.common.flogger.testing - package com.google.common.flogger.testing
 
containsUniqueEntry(MetadataKey<T>, T) - Method in class com.google.common.flogger.testing.MetadataSubject
 
create(String, String, int, String) - Static method in class com.google.common.flogger.testing.FakeLogSite
Creates a fake log site (with plausible behavior) from the given parameters.
create(LoggerBackend) - Static method in class com.google.common.flogger.testing.TestLogger
Returns a test logger for the default logging API.

E

equals(Object) - Method in class com.google.common.flogger.testing.FakeLogSite
 

F

FAKE_LOG_SITE - Static variable in class com.google.common.flogger.testing.FakeLogData
 
FAKE_LOGGER_NAME - Static variable in class com.google.common.flogger.testing.FakeLogData
 
FAKE_LOGGING_CLASS - Static variable in class com.google.common.flogger.testing.FakeLogData
 
FAKE_LOGGING_METHOD - Static variable in class com.google.common.flogger.testing.FakeLogData
 
FAKE_SOURCE_PATH - Static variable in class com.google.common.flogger.testing.FakeLogData
 
FakeLogData - Class in com.google.common.flogger.testing
Helper class to test logging backends without needing to create actual loggers.
FakeLoggerBackend - Class in com.google.common.flogger.testing
A logger backend which captures all LogData instances logged to it.
FakeLoggerBackend() - Constructor for class com.google.common.flogger.testing.FakeLoggerBackend
Returns a fake backend with a fixed name.
FakeLoggerBackend(String) - Constructor for class com.google.common.flogger.testing.FakeLoggerBackend
Returns a fake backend with the given name.
FakeLogSite - Class in com.google.common.flogger.testing
A simplified LogSite implementation used for testing.
FakeMetadata - Class in com.google.common.flogger.testing
 
FakeMetadata() - Constructor for class com.google.common.flogger.testing.FakeMetadata
 
findValue(MetadataKey<T>) - Method in class com.google.common.flogger.testing.FakeMetadata
 
forceAt(Level) - Method in class com.google.common.flogger.testing.TestLogger
Forces logging at the given level.
forceAt(Level, long) - Method in class com.google.common.flogger.testing.TestLogger
Forces logging at the given level, with the specified nanosecond timestamp.
FormatOptionsSubject - Class in com.google.common.flogger.testing
A Truth subject for FormatOptions.
FormatTypeSubject - Class in com.google.common.flogger.testing
A Truth subject for FormatType.

G

getArguments() - Method in class com.google.common.flogger.testing.FakeLogData
 
getClassName() - Method in class com.google.common.flogger.testing.FakeLogSite
 
getFileName() - Method in class com.google.common.flogger.testing.FakeLogSite
 
getKey(int) - Method in class com.google.common.flogger.testing.FakeMetadata
 
getLevel() - Method in class com.google.common.flogger.testing.FakeLogData
 
getLineNumber() - Method in class com.google.common.flogger.testing.FakeLogSite
 
getLiteralArgument() - Method in class com.google.common.flogger.testing.FakeLogData
 
getLogged(int) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
Returns the Nth LogData entry captured by this backend.
getLoggedCount() - Method in class com.google.common.flogger.testing.FakeLoggerBackend
Returns the number of LogData entries captured by this backend.
getLoggerName() - Method in class com.google.common.flogger.testing.FakeLogData
 
getLoggerName() - Method in class com.google.common.flogger.testing.FakeLoggerBackend
 
getLogSite() - Method in class com.google.common.flogger.testing.FakeLogData
 
getMessage(int) - Method in class com.google.common.flogger.testing.AssertingLogger
 
getMetadata() - Method in class com.google.common.flogger.testing.FakeLogData
 
getMethodName() - Method in class com.google.common.flogger.testing.FakeLogSite
 
getTemplateContext() - Method in class com.google.common.flogger.testing.FakeLogData
 
getTimestampMicros() - Method in class com.google.common.flogger.testing.FakeLogData
Deprecated.
getTimestampNanos() - Method in class com.google.common.flogger.testing.FakeLogData
 
getValue(int) - Method in class com.google.common.flogger.testing.FakeMetadata
 

H

handleError(RuntimeException, LogData) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
 
hasArguments(Object...) - Method in class com.google.common.flogger.testing.LogDataSubject
Asserts that this log entry's arguments match the given values.
hashCode() - Method in class com.google.common.flogger.testing.FakeLogSite
 
hasMessage(Object) - Method in class com.google.common.flogger.testing.LogDataSubject
Asserts that this log entry's message matches the given value.
hasNoFlags() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
hasPrecision(int) - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
hasSize(int) - Method in class com.google.common.flogger.testing.MetadataSubject
 
hasWidth(int) - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 

I

isDefault() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
isLoggable(Level) - Method in class com.google.common.flogger.testing.AssertingLogger
 
isLoggable(Level) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
 
isNotNumeric() - Method in class com.google.common.flogger.testing.FormatTypeSubject
 
isNumeric() - Method in class com.google.common.flogger.testing.FormatTypeSubject
 

K

keys() - Method in class com.google.common.flogger.testing.MetadataSubject
 

L

log(LogData) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
 
logData() - Static method in class com.google.common.flogger.testing.LogDataSubject
 
LogDataSubject - Class in com.google.common.flogger.testing
A Truth subject for LogData.

M

metadata() - Method in class com.google.common.flogger.testing.LogDataSubject
Asserts about the metadata of this log entry.
metadata() - Static method in class com.google.common.flogger.testing.MetadataSubject
 
MetadataSubject - Class in com.google.common.flogger.testing
A Truth subject for Metadata.

O

of(Object) - Static method in class com.google.common.flogger.testing.FakeLogData
Creates a fake LogData instance representing a log statement with a single, literal argument.

S

setLevel(Level) - Method in class com.google.common.flogger.testing.FakeLogData
 
setLevel(Level) - Method in class com.google.common.flogger.testing.FakeLoggerBackend
Sets the current level of this backend.
setLogSite(LogSite) - Method in class com.google.common.flogger.testing.FakeLogData
 
setTimestampNanos(long) - Method in class com.google.common.flogger.testing.FakeLogData
 
shouldLeftAlign() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntLeftAlign() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntPrefixPlusForPositiveValues() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntPrefixSpaceForPositiveValues() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntShowAltForm() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntShowGrouping() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntShowLeadingZeros() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldntUpperCase() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldPrefixPlusForPositiveValues() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldPrefixSpaceForPositiveValues() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldShowAltForm() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldShowGrouping() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldShowLeadingZeros() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
shouldUpperCase() - Method in class com.google.common.flogger.testing.FormatOptionsSubject
 
size() - Method in class com.google.common.flogger.testing.FakeMetadata
 

T

TestLogger - Class in com.google.common.flogger.testing
Helper class for unit tests which need to test backend or context behavior.
TestLogger.Api - Interface in com.google.common.flogger.testing
 

V

values() - Method in class com.google.common.flogger.testing.MetadataSubject
 

W

wasForced() - Method in class com.google.common.flogger.testing.FakeLogData
 
wasForced() - Method in class com.google.common.flogger.testing.LogDataSubject
Asserts that this log entry was forced.
withBraceStyle(String, Object...) - Static method in class com.google.common.flogger.testing.FakeLogData
Creates a fake LogData instance for a log statement with brace style formatting.
withPrintfStyle(String, Object...) - Static method in class com.google.common.flogger.testing.FakeLogData
Creates a fake LogData instance for a log statement with printf style formatting.
A C E F G H I K L M O S T V W 
Skip navigation links