logger

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGrpcLogger

func NewGrpcLogger(baseLog Logger, level string) grpclog.LoggerV2

NewGrpcLogger creates new instance of grpc LoggerV2

Types

type Logger

type Logger interface {
	Error(val interface{})
	Errorw(val interface{}, keysAndValues ...interface{})
	Debug(val interface{})
	Debugw(msg string, keysAndValues ...interface{})
	Info(val interface{})
	Infow(msg string, keysAndValues ...interface{})
	Warn(val interface{})
	Warnw(msg string, keysAndValues ...interface{})
	WithMap(m map[string]string) Logger
	Fatal(val interface{})
	// contains filtered or unexported methods
}

func NewLogger

func NewLogger(opts ...LoggerOption) Logger

type LoggerOption

type LoggerOption func(opt *loggerOpts)

func WithEncoding

func WithEncoding(encoding string) LoggerOption

func WithLevel

func WithLevel(level string) LoggerOption

Jump to

Keyboard shortcuts

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