Documentation
¶
Overview ¶
Package logger provides internal logging utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FailTestLogger ¶
type FailTestLogger struct {
// contains filtered or unexported fields
}
FailTestLogger is a logger that fails tests when the application emits warnings or errors. Use this in tests to assert that application code doesn't produce unexpected warnings/errors.
func (*FailTestLogger) Debug ¶
func (l *FailTestLogger) Debug(msg string, args ...any)
Debug is a no-op. Debug logs are expected and don't indicate problems.
func (*FailTestLogger) Error ¶
func (l *FailTestLogger) Error(msg string, args ...any)
Error fails the test. Application code should not emit errors during tests.
func (*FailTestLogger) Info ¶
func (l *FailTestLogger) Info(msg string, args ...any)
Info is a no-op. Info logs are expected and don't indicate problems.
func (*FailTestLogger) Warn ¶
func (l *FailTestLogger) Warn(msg string, args ...any)
Warn fails the test. Application code should not emit warnings during tests.
Click to show internal directories.
Click to hide internal directories.