Documentation
¶
Overview ¶
Package log provides a high-performance, non-blocking logger for userspace networking
Index ¶
- type Level
- type Logger
- func (l *Logger) Debug(format string, args ...any)
- func (l *Logger) Error(format string, args ...any)
- func (l *Logger) Info(format string, args ...any)
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Stop(ctx context.Context) error
- func (l *Logger) Trace(format string, args ...any)
- func (l *Logger) Warn(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a high-performance, non-blocking logger
func NewFromLogrus ¶
NewFromLogrus creates a new Logger that writes to the same output as the given logrus logger
Click to show internal directories.
Click to hide internal directories.