logger

package
v0.0.0-...-1997d56 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func Init

func Init()

nolint

func InitCmdSugar

func InitCmdSugar(ws zapcore.WriteSyncer)

nolint

func Logger

func Logger() *zap.Logger

func Panic

func Panic(args ...interface{})

func Panicf

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

func Sugar

func Sugar() *zap.SugaredLogger

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type CmdSugarLogger

type CmdSugarLogger struct {
	*zap.SugaredLogger
	// contains filtered or unexported fields
}

CmdSugarLogger wraps zap.SugaredLogger and zapcore.WriteSyncer in order to use Sugar while being able to use low-level writers.

func CmdSugar

func CmdSugar() *CmdSugarLogger

func (*CmdSugarLogger) Print

func (log *CmdSugarLogger) Print(s string)

type LogLevel

type LogLevel uint32
const (
	LogLevelDebug LogLevel = iota
	LogLevelInfo
	LogLevelWarn
	LogLevelError
	LogLevelPanic
	LogLevelFatal
)

Jump to

Keyboard shortcuts

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