log

package
v0.0.0-...-96417ad Latest Latest
Warning

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

Go to latest
Published: Mar 31, 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 *config.AppConfig) *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