log

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close 关闭日志

func Debug

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

Debug 打印 debug 级别的日志

func Error

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

Error 打印 error 级别的日志

func Info

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

Info 打印 info 级别的日志

func SetLogLevel

func SetLogLevel(level zapcore.Level)

SetLogLevel 设置日志级别

func Warn

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

Warn 打印 warn 级别的日志

Types

This section is empty.

Jump to

Keyboard shortcuts

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