logger

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context)

func SetCorrelationIdContextKey added in v0.2.1

func SetCorrelationIdContextKey(key string)

func SetCorrelationIdFieldKey added in v0.2.1

func SetCorrelationIdFieldKey(key string)

Types

type CLogger added in v0.2.0

type CLogger struct {
	zap.Logger
}

func Logger

func Logger() *CLogger

func (*CLogger) WithContextCorrelationId added in v0.2.1

func (l *CLogger) WithContextCorrelationId(ctx context.Context) *CLogger

func (*CLogger) WithCorrelationId added in v0.2.0

func (l *CLogger) WithCorrelationId(correlationId interface{}) *CLogger

type CSugaredLogger added in v0.2.0

type CSugaredLogger struct {
	zap.SugaredLogger
}

func SugaredLogger

func SugaredLogger() *CSugaredLogger

func (*CSugaredLogger) WithContextCorrelationId added in v0.2.1

func (l *CSugaredLogger) WithContextCorrelationId(ctx context.Context) *CSugaredLogger

func (*CSugaredLogger) WithCorrelationId added in v0.2.0

func (l *CSugaredLogger) WithCorrelationId(correlationId interface{}) *CSugaredLogger

Jump to

Keyboard shortcuts

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