logger

package
v0.0.0-...-3ee0b18 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel string = "debug"
	InfoLevel  string = "info"
	WarnLevel  string = "warn"
	ErrorLevel string = "error"
)

Variables

This section is empty.

Functions

func Debugln

func Debugln(args ...any)

func Debugw

func Debugw(msg string, args ...any)

func Error

func Error(args ...any)

func Errorf

func Errorf(msg string, args ...any)

func Errorln

func Errorln(args ...any)

func Errorw

func Errorw(msg string, args ...any)

func Info

func Info(args ...any)

func Infof

func Infof(msg string, args ...any)

func Infoln

func Infoln(args ...any)

func Infow

func Infow(msg string, args ...any)

func SetDefault

func SetDefault(l *Logger)

func Warn

func Warn(args ...any)

func Warnf

func Warnf(msg string, args ...any)

func Warnln

func Warnln(args ...any)

Types

type Config

type Config struct {
	NodeName   string
	SkipCaller int
	LogLevel   string
}

type Logger

type Logger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

func Default

func Default() *Logger

func New

func New(cfg Config) *Logger

Jump to

Keyboard shortcuts

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