zap

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: GPL-3.0 Imports: 5 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 {
	ID string

	Fields map[string]zapcore.Field
	// contains filtered or unexported fields
}

func New

func New(logLevel string, json bool) *Logger

func (*Logger) AddAnyField added in v0.0.12

func (l *Logger) AddAnyField(key string, value any)

func (*Logger) AddIntField added in v0.0.12

func (l *Logger) AddIntField(key string, value int)

func (*Logger) AddStringField added in v0.0.12

func (l *Logger) AddStringField(key string, value string)

func (*Logger) Debug added in v0.0.12

func (l *Logger) Debug(msg string)

func (*Logger) Error added in v0.0.12

func (l *Logger) Error(err error)

func (*Logger) ErrorMsg added in v0.0.12

func (l *Logger) ErrorMsg(msg string)

func (*Logger) Info added in v0.0.12

func (l *Logger) Info(msg string)

func (*Logger) LogRequest

func (l *Logger) LogRequest(data logging.LogData)

func (*Logger) NewScope added in v0.0.12

func (l *Logger) NewScope(value string) logging.Writer

func (*Logger) Warn added in v0.0.12

func (l *Logger) Warn(msg string)

Jump to

Keyboard shortcuts

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