log

package
v0.0.0-...-d705234 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GrpcUnaryServerInterceptor

func GrpcUnaryServerInterceptor(l *Log) grpc.UnaryServerInterceptor

func NewContext

func NewContext(ctx context.Context, fields ...zapcore.Field) context.Context

func Start

func Start()

func WithCtx

func WithCtx(ctx context.Context) *zap.Logger

func WithFields

func WithFields(ctx context.Context, fields map[string]string) context.Context

Types

type Log

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

func Logger

func Logger() *Log

func (*Log) Debug

func (l *Log) Debug(ctx context.Context, args ...interface{})

func (*Log) Error

func (l *Log) Error(ctx context.Context, args ...interface{})

func (*Log) Fatal

func (l *Log) Fatal(ctx context.Context, args ...interface{})

func (*Log) Info

func (l *Log) Info(ctx context.Context, args ...interface{})

func (*Log) Warn

func (l *Log) Warn(ctx context.Context, args ...interface{})

Jump to

Keyboard shortcuts

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