Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory interface {
New() Logger
}
Factory creates a Logger with provided options. Concrete packages can expose their own Options type and translate here as needed.
type Logger ¶
type Logger interface {
Debug(args ...any)
Info(args ...any)
Warn(args ...any)
Error(args ...any)
Debugf(format string, args ...any)
Infof(format string, args ...any)
Warnf(format string, args ...any)
Errorf(format string, args ...any)
// With attaches structured key-value pairs and returns a derived logger.
With(keysAndValues ...any) Logger
}
Logger defines a small logging interface to allow multiple implementations. It's intentionally minimal and aligned with typical needs.
Click to show internal directories.
Click to hide internal directories.