log

package
v1.8.8 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// LogPath is the path where log files are stored.
	LogPath = "/var/log/"
)

Variables

View Source
var (
	CNILogger       = initZapLog(zapCNILogFile)
	IPamLogger      = initZapLog(zapIpamLogFile)
	TelemetryLogger = initZapLog(zapTelemetryLogFile)
)

Functions

func InitializeMock

func InitializeMock()

func JoinPlatformCores

func JoinPlatformCores(c zapcore.Core, _ zapcore.Level) (zapcore.Core, error)

func SetMetadata added in v1.8.8

func SetMetadata(fields ...zap.Field)

SetMetadata sets metadata fields that will be appended to every log entry written through CNILogger, IPamLogger, and TelemetryLogger (and any loggers derived from them). Safe to call once from main() after metadata is available.

Types

type ErrorWithoutStackTrace

type ErrorWithoutStackTrace struct {
	// contains filtered or unexported fields
}

func NewErrorWithoutStackTrace

func NewErrorWithoutStackTrace(err error) *ErrorWithoutStackTrace

func (*ErrorWithoutStackTrace) Error

func (l *ErrorWithoutStackTrace) Error() string

func (*ErrorWithoutStackTrace) Format

func (l *ErrorWithoutStackTrace) Format(s fmt.State, verb rune)

func (*ErrorWithoutStackTrace) Unwrap

func (l *ErrorWithoutStackTrace) Unwrap() error

Jump to

Keyboard shortcuts

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