Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockLogger ¶
NewMockLogger creates a new logger with the mock handler
Types ¶
type MockHandler ¶
type MockHandler struct {
// You can add fields here to track calls for testing if needed
// For example:
LoggedMessages []string
LoggedLevels []slog.Level
// contains filtered or unexported fields
}
MockHandler is a mock implementation of slog.Handler
Click to show internal directories.
Click to hide internal directories.