logger

package
v0.0.0-...-a229907 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// LevelInfo is the info level.
	LevelInfo = iota
	// LevelWarn is the warn level.
	LevelWarn
	// LevelError is the error level.
	LevelError
)

Variables

This section is empty.

Functions

func Log

func Log(level uint, str map[string]string, err interface{}, msg string)

Log logs the message, source file, and line number at the specified level.

Types

type LogFunc

type LogFunc func(level uint, str map[string]string, err interface{}, msg string)

LogFunc is a function signature for logging.

func SetLogFunc

func SetLogFunc(lf LogFunc) LogFunc

SetLogFunc sets the logging function.

Jump to

Keyboard shortcuts

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