log

package
v0.0.0-...-39efa14 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const KEY = "zapLogger"

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*zap.Logger
}

func NewLogger

func NewLogger(conf *config.AtomicAllConfig) (*Logger, func())

func (*Logger) NewContext

func (l *Logger) NewContext(c *fiber.Ctx, fields ...zapcore.Field)

NewContext Adds a field to the specified context

func (*Logger) WithContext

func (l *Logger) WithContext(c *fiber.Ctx) *Logger

WithContext Returns a zap instance from the specified context

Jump to

Keyboard shortcuts

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