log

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AccessLogger *zap.Logger
	Logger       *zap.Logger
	SqlLogger    *zap.Logger
)

Functions

func Access

func Access(ctx context.Context, msg string, fields ...zap.Field)

func Close added in v0.8.0

func Close()

func Debug

func Debug(ctx context.Context, msg string, val ...interface{})

func Error

func Error(ctx context.Context, msg string, val ...interface{})

func Info

func Info(ctx context.Context, msg string, val ...interface{})

func InitLog added in v0.6.3

func InitLog(cfg *cfg.AppConfig)

InitLog 配置日志模块

func Panic

func Panic(ctx context.Context, msg string, val ...interface{})

func Warn

func Warn(ctx context.Context, msg string, val ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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