zap

package
v0.0.0-...-a49857f Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger grpc 日志实现

func InitLog

func InitLog(path string, level string) *Logger

InitLog 初始化 log

func (*Logger) Debug

func (g *Logger) Debug(args ...interface{})

Debug .

func (*Logger) DebugContextf

func (g *Logger) DebugContextf(ctx context.Context, format string, args ...interface{})

DebugContextf .

func (*Logger) Debugf

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

Debugf .

func (*Logger) Error

func (g *Logger) Error(args ...interface{})

Error .

func (*Logger) ErrorContextf

func (g *Logger) ErrorContextf(ctx context.Context, format string, args ...interface{})

ErrorContextf .

func (*Logger) Errorf

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

Errorf .

func (*Logger) Fatal

func (g *Logger) Fatal(args ...interface{})

Fatal .

func (*Logger) FatalContextf

func (g *Logger) FatalContextf(ctx context.Context, format string, args ...interface{})

FatalContextf .

func (*Logger) Fatalf

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

Fatalf .

func (*Logger) Info

func (g *Logger) Info(args ...interface{})

Info .

func (*Logger) InfoContextf

func (g *Logger) InfoContextf(ctx context.Context, format string, args ...interface{})

InfoContextf .

func (*Logger) Infof

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

Infof .

func (*Logger) Sync

func (g *Logger) Sync() error

Sync 资源关闭

func (*Logger) Warn

func (g *Logger) Warn(args ...interface{})

Warn .

func (*Logger) WarnContextf

func (g *Logger) WarnContextf(ctx context.Context, format string, args ...interface{})

WarnContextf .

func (*Logger) Warnf

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

Warnf .

Jump to

Keyboard shortcuts

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