Documentation ¶
Overview ¶
Package zlog provides logging services.
Index ¶
- Variables
- func CtxDebugf(ctx context.Context, debug bool, format string, v ...any)
- func CtxErrorf(ctx context.Context, format string, v ...any)
- func CtxInfof(ctx context.Context, format string, v ...any)
- func Debugf(debug bool, format string, v ...any)
- func Errorf(format string, v ...any)
- func Fatalf(format string, v ...any)
- func GinErrorf(c *gin.Context, format string, v ...any)
- func GinInfof(c *gin.Context, format string, v ...any)
- func GinzapFields(c *gin.Context) []zapcore.Field
- func Infof(format string, v ...any)
Constants ¶
This section is empty.
Variables ¶
View Source
var Logger = initLogger() // Logger exposes the zap logger
View Source
var LoggerConfig zap.Config // LoggerConfig can be used to SetLevel: LoggerConfig.Level.SetLevel(zap.DebugLevel)
Functions ¶
func GinzapFields ¶
GinzapFields provides fields for ginzap log middleware.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.