zap

package
v0.0.0-...-e95732d Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewDev

func NewDev(ctx context.Context, parDir, name string) *Logger

func NewDevSampling

func NewDevSampling(ctx context.Context, name string, freq time.Duration, initial, skip int) *Logger

func NewProd

func NewProd(ctx context.Context, parDir, name string) *Logger

func NewProdSampling

func NewProdSampling(ctx context.Context, name string, freq time.Duration, initial, skip int) *Logger

func (*Logger) Debug

func (l *Logger) Debug(msg string, fields ...zap.Field)

func (*Logger) Error

func (l *Logger) Error(msg string, fields ...zap.Field)

func (*Logger) Fatal

func (l *Logger) Fatal(msg string, fields ...zap.Field)

func (*Logger) Info

func (l *Logger) Info(msg string, fields ...zap.Field)

func (*Logger) Warn

func (l *Logger) Warn(msg string, fields ...zap.Field)

Jump to

Keyboard shortcuts

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