console

package
v3.26.151 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 6 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 ...interface{})

func DPanicln

func DPanicln(args ...interface{})

func DPanicw

func DPanicw(msg string, keysAndValues ...interface{})

func Debug

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

func Debugf

func Debugf(template string, args ...interface{})

func Debugln

func Debugln(args ...interface{})

Debugln

PS: Spaces are always added between arguments.(传参间会加上" ")

func Debugw

func Debugw(msg string, keysAndValues ...interface{})

Debugw 结构化输出的信息日志,使用键值对的方式输出,更加适合记录结构化数据.

@param keysAndValues e.g. "key", "value", "flag", true

func Error

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

func Errorf

func Errorf(template string, args ...interface{})

func Errorln

func Errorln(args ...interface{})

func Errorw

func Errorw(msg string, keysAndValues ...interface{})

func Fatal

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

func Fatalf

func Fatalf(template string, args ...interface{})

func Fatalln

func Fatalln(args ...interface{})

func Fatalw

func Fatalw(msg string, keysAndValues ...interface{})

func Info

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

func Infof

func Infof(template string, args ...interface{})

func Infoln

func Infoln(args ...interface{})

func Infow

func Infow(msg string, keysAndValues ...interface{})

func Panic

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

func Panicf

func Panicf(template string, args ...interface{})

func Panicln

func Panicln(args ...interface{})

func Panicw

func Panicw(msg string, keysAndValues ...interface{})

func PrintBasicDetails

func PrintBasicDetails()

func SetLogLevel added in v3.26.115

func SetLogLevel(level zapcore.Level)

func Sync

func Sync()

func Warn

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

func Warnf

func Warnf(template string, args ...interface{})

func Warnln

func Warnln(args ...interface{})

func Warnw

func Warnw(msg string, keysAndValues ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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