logger

package
v1.5.7 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 2 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 Log

func Log(ctx context.Context, level int, msg string)

Types

type Logger

type Logger interface {
	Log(ctx context.Context, level int, msg string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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