logx

package
v0.0.0-...-b3af538 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *zap.Logger
)

全局日志

Functions

func Debug

func Debug(msg string, fields ...zap.Field)

func Enable

func Enable(level zapcore.Level) bool

func EnableDebug

func EnableDebug() bool

func Error

func Error(msg string, fields ...zap.Field)

func Fatal

func Fatal(msg string, fields ...zap.Field)

func Info

func Info(msg string, fields ...zap.Field)

func Panic

func Panic(msg string, fields ...zap.Field)

func SetLogLevel

func SetLogLevel(level zapcore.Level)

func Warn

func Warn(msg string, fields ...zap.Field)

func WithName

func WithName(name string) *zap.Logger

WithName 使用前缀创建一个logger

Types

type Options

type Options struct {
	Level zapcore.Level
}

Jump to

Keyboard shortcuts

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