Documentation ¶
Overview ¶
Package slogtest contains the slogger for use with Go's testing package.
If imported, then all logs that go through the stdlib's default logger will go through slog.
Index ¶
- func Debug(t testing.TB, msg string, fields ...slog.Field)
- func Error(t testing.TB, msg string, fields ...slog.Field)
- func Fatal(t testing.TB, msg string, fields ...slog.Field)
- func Info(t testing.TB, msg string, fields ...slog.Field)
- func Make(tb testing.TB, opts *Options) slog.SinkContext
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.