log

package
v0.4.4-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

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 DefaultLoggerConfig() *zap.Config

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL