logger

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...Option) (*zap.Logger, error)

Types

type Logger

type Logger interface {
	grpclog.LoggerV2
	Println(v ...interface{})
}

func GRPC

func GRPC(l *zap.Logger) Logger

type Option

type Option func(o *options)

func WithAppName

func WithAppName(v string) Option

func WithAppVersion

func WithAppVersion(v string) Option

func WithFormat

func WithFormat(v string) Option

func WithLevel

func WithLevel(v string) Option

func WithSamplingInitial

func WithSamplingInitial(v int) Option

func WithSamplingThereafter

func WithSamplingThereafter(v int) Option

func WithTraceLevel

func WithTraceLevel(v string) Option

func WithZapOptions

func WithZapOptions(opts ...zap.Option) Option

func WithoutCaller

func WithoutCaller() Option

func WithoutDisclaimer

func WithoutDisclaimer() Option

Jump to

Keyboard shortcuts

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