logger

package
v0.0.0-...-6e2457b Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Field

type Field struct {
	Key string
	Val any
}

func ErrorField

func ErrorField(err error) Field

type Logger

type Logger interface {
	Debug(msg string, args ...Field)
	Info(msg string, args ...Field)
	Warn(msg string, args ...Field)
	Error(msg string, args ...Field)
}

type ZapLogger

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

func NewZapLogger

func NewZapLogger(zl *zap.Logger) *ZapLogger

func (*ZapLogger) Debug

func (Self *ZapLogger) Debug(msg string, args ...Field)

func (*ZapLogger) Error

func (Self *ZapLogger) Error(msg string, args ...Field)

func (*ZapLogger) Info

func (Self *ZapLogger) Info(msg string, args ...Field)

func (*ZapLogger) Warn

func (Self *ZapLogger) Warn(msg string, args ...Field)

Jump to

Keyboard shortcuts

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