zap_logger

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MulanPSL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger *zap.Logger

Functions

func Debug

func Debug(ctx *gin.Context, category, msg string)

func Debugf

func Debugf(ctx *gin.Context, category, msg string, value ...interface{})

func Error

func Error(ctx *gin.Context, category, msg string)

func Errorf

func Errorf(ctx *gin.Context, category, msg string, value ...interface{})

func Fatal

func Fatal(ctx *gin.Context, category, msg string)

func Info

func Info(ctx *gin.Context, category, msg string)

func Infof

func Infof(ctx *gin.Context, category, msg string, value ...interface{})

func Init

func Init()

Init 配置日志模块

func Panic

func Panic(ctx *gin.Context, category, msg string)

func Panicf

func Panicf(ctx *gin.Context, category, msg string, value ...interface{})

func Warn

func Warn(ctx *gin.Context, category, msg string)

func Warnf

func Warnf(ctx *gin.Context, category, msg string, value ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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