zaplog

package
v0.0.0-...-2a10a86 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

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

func DPanicf

func DPanicf(template string, args ...any)

func DPanicln

func DPanicln(args ...any)

func DPanicw

func DPanicw(msg string, keyAndValues ...any)

func Debug

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

func Debugf

func Debugf(template string, args ...any)

func Debugln

func Debugln(args ...any)

func Debugw

func Debugw(msg string, keyAndValues ...any)

func Error

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

func Errorf

func Errorf(template string, args ...any)

func Errorln

func Errorln(args ...any)

func Errorw

func Errorw(msg string, keyAndValues ...any)

func Fatal

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

func Fatalf

func Fatalf(template string, args ...any)

func Fatalln

func Fatalln(args ...any)

func Fatalw

func Fatalw(msg string, keyAndValues ...any)

func GetLogger

func GetLogger() *zap.Logger

func GetSuperLogger

func GetSuperLogger() *zap.SugaredLogger

func Info

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

func Infof

func Infof(template string, args ...any)

func Infoln

func Infoln(args ...any)

func Infow

func Infow(msg string, keyAndValues ...any)

func Init

func Init()

func Log

func Log(lvl zapcore.Level, msg string, fields ...zap.Field)

func Panic

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

func Panicf

func Panicf(template string, args ...any)

func Panicln

func Panicln(args ...any)

func Panicw

func Panicw(msg string, keyAndValues ...any)

func SetFormat

func SetFormat(fmt string)

SetFormat will set zap logger format. allowed json,console,color

func SetLevel

func SetLevel(lvl string)

func Sync

func Sync() error

func Warn

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

func Warnf

func Warnf(template string, args ...any)

func Warnln

func Warnln(args ...any)

func Warnw

func Warnw(msg string, keyAndValues ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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