log

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) *logrus.Entry

Extract gets logger for connection

Types

type Fields

type Fields = logrus.Fields

Fields is a weak typedef for logrus.Fields

type Logger

type Logger struct {
	*logrus.Logger
	// contains filtered or unexported fields
}

Logger wraps logger for modoki

func New

func New() *Logger

New initializes a new logger

func (*Logger) StreamInterceptor

func (l *Logger) StreamInterceptor() grpc.StreamServerInterceptor

StreamInterceptor returns an unary server interceptor for gRPC

func (*Logger) UnaryInterceptor

func (l *Logger) UnaryInterceptor() grpc.UnaryServerInterceptor

UnaryInterceptor returns an unary server interceptor for gRPC

Jump to

Keyboard shortcuts

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