Documentation
¶
Overview ¶
Package loggingtest builds redacting loggers for tests, writing to a buffer the test reads back.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Buffer ¶
type Buffer struct {
// contains filtered or unexported fields
}
Buffer collects log output, safely from several goroutines.
func New ¶
New returns a redacting logger, as logging.New makes it, keyed with a dummy key and writing to the returned buffer.
Click to show internal directories.
Click to hide internal directories.