Documentation ¶
Overview ¶
Package spruce providers an slog.Handler that writes pretty-printed structured logs to a testing.T (or compatible) logger.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler returns a new slog.Handler that writes to t.
Types ¶
type TestingT ¶
type TestingT interface {
Log(...any)
}
TestingT is the subset of the testing.TB interface that is used to write logs.
Click to show internal directories.
Click to hide internal directories.