logger

package
v0.0.0-...-7286f95 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	Zap        *zap.SugaredLogger
	DesugarZap *zap.Logger
}

Zap SugaredLogger by default DesugarZap performance-sensitive code

var (
	ZLogger Logger
)

Logger singleton

func NewLogger

func NewLogger(config config.LoggerConfig) *Logger

func (*Logger) LogWithFields

func (l *Logger) LogWithFields(msg string, requestID string, serviceName string)

Jump to

Keyboard shortcuts

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