xlog

package
v0.0.0-...-ac3b76c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DebugLevel = "debug"
	InfoLevel  = "info"
	WarnLevel  = "warn"
	ErrorLevel = "error"
	PanicLevel = "panic"
	FatalLevel = "fatal"
)

Variables

This section is empty.

Functions

func Debug

func Debug(ctx LogContext)

func Error

func Error(ctx LogContext)

func Fatal

func Fatal(ctx LogContext)

func Info

func Info(ctx LogContext)

func InitLog

func InitLog(dir string, level string, serviceName string)

func Panic

func Panic(ctx LogContext)

func Warn

func Warn(ctx LogContext)

Types

type LogContext

type LogContext interface {
	Formatter() (string, []zapcore.Field)
}

Jump to

Keyboard shortcuts

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