logger

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CtxLogger

type CtxLogger struct {
	Zap *zap.Logger
}

func (*CtxLogger) Info

func (ctxlog *CtxLogger) Info(logText string, a ...any)

func (*CtxLogger) InfofJSON

func (ctxlog *CtxLogger) InfofJSON(logText string, a ...any)

func (*CtxLogger) NewPrefix

func (ctxlog *CtxLogger) NewPrefix(prefix string) *CtxLogger

type Service

type Service interface {
	NewPrefix(prefix string) *CtxLogger
}

func NewLoggerService

func NewLoggerService(conf config.Config) Service

func NewLoggerServiceWithZap

func NewLoggerServiceWithZap(zl *zap.Logger) Service

Jump to

Keyboard shortcuts

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