Documentation ¶
Overview ¶
Package loggingtest provides logging utilities for unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a logging.Logger that accumulates logs to an in-memory buffer, as well as emitting them as unit test logs.
This is useful for unit tests that inspect logs from a function call.
Click to show internal directories.
Click to hide internal directories.