gone_zap

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSugar

func NewSugar() (gone.Goner, gone.GonerId, gone.GonerOption)

func NewTraceEncoder

func NewTraceEncoder(encoder zapcore.Encoder, tracer gone.Tracer) zapcore.Encoder

func NewZapLogger

func NewZapLogger() (gone.Goner, gone.GonerId, gone.GonerOption)

func Priest

func Priest(cemetery gone.Cemetery) error

Types

type Field

type Field = zapcore.Field

type Logger

type Logger interface {
	Debug(msg string, fields ...Field)
	Info(msg string, fields ...Field)
	Warn(msg string, fields ...Field)
	Error(msg string, fields ...Field)
	Panic(msg string, fields ...Field)
	Fatal(msg string, fields ...Field)

	Named(s string) Logger
	WithOptions(opts ...Option) Logger
	With(fields ...Field) Logger
	Sugar() gone.Logger
	// contains filtered or unexported methods
}

type Option

type Option = zap.Option

Jump to

Keyboard shortcuts

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