logger

package
v1.5.9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug = iota
	LevelInfo
	LevelWarn
	LevelError
)

Variables

View Source
var (
	LevelName = []string{
		"DEBUG",
		"INFO",
		"WARN",
		"ERROR",
	}
)

Functions

func LogDebug added in v1.5.9

func LogDebug(ctx context.Context, msg string, args ...any)

func LogError added in v1.5.9

func LogError(ctx context.Context, msg string, args ...any)

func LogInfo added in v1.5.9

func LogInfo(ctx context.Context, msg string, args ...any)

func LogWarn added in v1.5.9

func LogWarn(ctx context.Context, msg string, args ...any)

Types

type Logger

type Logger interface {
	LogDebug(ctx context.Context, msg string, args ...any)
	LogInfo(ctx context.Context, msg string, args ...any)
	LogWarn(ctx context.Context, msg string, args ...any)
	LogError(ctx context.Context, msg string, args ...any)
}

Directories

Path Synopsis
zap

Jump to

Keyboard shortcuts

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