logger

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultLogger added in v1.1.0

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

func InitializeLogger added in v1.1.0

func InitializeLogger(ctx context.Context, name, version string) error

Types

type Logger

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

func New

func New(ctx context.Context, name, version string) (*Logger, error)

func NewNop added in v1.0.14

func NewNop() *Logger

func (*Logger) WithTraceFromContext

func (l *Logger) WithTraceFromContext(ctx context.Context) *zap.Logger

Jump to

Keyboard shortcuts

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