log

package
v0.0.0-...-c38bb4e Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 8 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.Logger
}

func NewLog

func NewLog(conf *viper.Viper) *Logger

func (*Logger) WithContext

func (l *Logger) WithContext(ctx context.Context) *Logger

WithContext Returns a zap instance from the specified context

func (*Logger) WithValue

func (l *Logger) WithValue(ctx context.Context, fields ...zapcore.Field) context.Context

WithValue Adds a field to the specified context

Jump to

Keyboard shortcuts

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