log

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 5 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

Types

type LeptonLogger

type LeptonLogger struct {
	*zap.SugaredLogger
}
var (
	Logger *LeptonLogger
)

func CreateLogger

func CreateLogger(config *zap.Config) *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 added in v0.1.0

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