zap

package
v0.0.0-...-481d101 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWaterZapLogger

func NewWaterZapLogger(debugInfoWriter, warnErrorFatalWriter io.Writer) *zap.Logger

func NewZapLogger

func NewZapLogger(w io.Writer) *zap.Logger

Types

type EncoderType

type EncoderType int8
const (
	JSONEncoder EncoderType = iota
	ConsoleEncoder
)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func NewLogger

func NewLogger(w io.Writer) *Logger

func NewWaterLogger

func NewWaterLogger(debugInfoWriter, warnErrorFatalWriter io.Writer) *Logger

func (*Logger) Close

func (l *Logger) Close()

func (*Logger) Log

func (l *Logger) Log(level logit.Level, keyValues ...interface{}) error

Jump to

Keyboard shortcuts

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