log

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Unlicense Imports: 8 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(template string, args ...interface{})

Debugf uses fmt.Sprintf to log a templated message.

func Error

func Error(args ...interface{})

Error uses fmt.Sprint to construct and log a message.

func Errorf

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

Errorf uses fmt.Sprintf to log a templated message.

func Fatal

func Fatal(args ...interface{})

Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.

func Fatalf

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

Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.

func GetEncoder

func GetEncoder() zapcore.Encoder

func Info

func Info(args ...interface{})

Info uses fmt.Sprint to construct and log a message.

func Infof

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

Infof uses fmt.Sprintf to log a templated message.

func InitLogger

func InitLogger(path string, level string)

Useage:

logger := InitLogger(full_path, level)

func Warn

func Warn(args ...interface{})

Warn uses fmt.Sprint to construct and log a message.

func Warnf

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

Warnf uses fmt.Sprintf to log a templated message.

Types

type UidLog

type UidLog struct {
	// contains filtered or unexported fields
}

func NewUidLog

func NewUidLog(ctx context.Context) UidLog

Useage:

ulog := NewUidLog(ctx)

func (UidLog) Debug

func (t UidLog) Debug(args ...interface{})

func (UidLog) Debugf

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

Debugf uses fmt.Sprintf to log a templated message.

func (UidLog) Error

func (t UidLog) Error(args ...interface{})

Error uses fmt.Sprint to construct and log a message.

func (UidLog) Errorf

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

Errorf uses fmt.Sprintf to log a templated message.

func (UidLog) Fatal

func (t UidLog) Fatal(args ...interface{})

Fatal uses fmt.Sprint to construct and log a message, then calls os.Exit.

func (UidLog) Fatalf

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

Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.

func (UidLog) GetUUID

func (t UidLog) GetUUID() string

Get ulog UUID

func (UidLog) Info

func (t UidLog) Info(args ...interface{})

Info uses fmt.Sprint to construct and log a message.

func (UidLog) Infof

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

Infof uses fmt.Sprintf to log a templated message.

func (UidLog) Printf

func (t UidLog) Printf(template string, args ...interface{})

Fatalf uses fmt.Sprintf to log a templated message, then calls os.Exit.

func (UidLog) Warn

func (t UidLog) Warn(args ...interface{})

Warn uses fmt.Sprint to construct and log a message.

func (UidLog) Warnf

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

Warnf uses fmt.Sprintf to log a templated message.

Jump to

Keyboard shortcuts

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