zap

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Err_Panic codes.Code = 500
)

Variables

This section is empty.

Functions

func MessageProducer

func MessageProducer(ctx context.Context, msg string, level zapcore.Level, code codes.Code, err error, duration zapcore.Field)

func New

func New(c Config) *zap.Logger

func Reco

func Reco(ctx context.Context, p interface{}) error

Types

type Config

type Config struct {
	Level       string             `yaml:"level"`
	Env         string             `yaml:"env"`
	Logger      *lumberjack.Logger `yaml:"logger"`
	OpenTracing string             `yaml:"open_tracing"`
}

Jump to

Keyboard shortcuts

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