Documentation
¶
Overview ¶
Package log provides the logging functionality for gpud.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultLoggerConfig ¶
func ParseLogLevel ¶
func ParseLogLevel(logLevel string) (zap.AtomicLevel, error)
Types ¶
type LeptonLogger ¶
type LeptonLogger struct {
*zap.SugaredLogger
}
var (
Logger *LeptonLogger
)
func CreateLogger ¶
func CreateLogger(logLevel zap.AtomicLevel, logFile string) *LeptonLogger
func CreateLoggerWithConfig ¶
func CreateLoggerWithConfig(config *zap.Config) *LeptonLogger
func CreateLoggerWithLumberjack ¶
func CreateLoggerWithLumberjack(logFile string, maxSize int, logLevel zapcore.Level) *LeptonLogger
func (*LeptonLogger) Errorw ¶
func (l *LeptonLogger) Errorw(msg string, keysAndValues ...interface{})
Override the default logger's Errorw func to down level context canceled error
func (*LeptonLogger) Printf ¶
func (l *LeptonLogger) Printf(format string, v ...any)
Implements "tailscale.com/types/logger".Logf.
Click to show internal directories.
Click to hide internal directories.