zapadapter

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(logger *zap.Logger) logx.Adapter

New returns a pointer to a new instance of ZapAdapter

Types

type ZapAdapter

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

ZapAdapter implementation to wrap a format Logger

func (*ZapAdapter) Debug

func (z *ZapAdapter) Debug(v ...any)

func (*ZapAdapter) Debugf

func (z *ZapAdapter) Debugf(format string, v ...any)

func (*ZapAdapter) Error

func (z *ZapAdapter) Error(v ...any)

func (*ZapAdapter) Errorf

func (z *ZapAdapter) Errorf(format string, v ...any)

func (*ZapAdapter) Fatal

func (z *ZapAdapter) Fatal(v ...any)

func (*ZapAdapter) Fatalf

func (z *ZapAdapter) Fatalf(format string, v ...any)

func (*ZapAdapter) Info

func (z *ZapAdapter) Info(v ...any)

func (*ZapAdapter) Infof

func (z *ZapAdapter) Infof(format string, v ...any)

func (*ZapAdapter) Notice

func (z *ZapAdapter) Notice(v ...any)

func (*ZapAdapter) Noticef

func (z *ZapAdapter) Noticef(format string, v ...any)

func (*ZapAdapter) Panic

func (z *ZapAdapter) Panic(v ...any)

func (*ZapAdapter) Panicf

func (z *ZapAdapter) Panicf(format string, v ...any)

func (*ZapAdapter) Print

func (z *ZapAdapter) Print(v ...any)

func (*ZapAdapter) Printf

func (z *ZapAdapter) Printf(format string, v ...any)

func (*ZapAdapter) Warning

func (z *ZapAdapter) Warning(v ...any)

func (*ZapAdapter) Warningf

func (z *ZapAdapter) Warningf(format string, v ...any)

func (*ZapAdapter) WithField

func (z *ZapAdapter) WithField(name string, value any) logx.Logger

func (*ZapAdapter) WithFormatter

func (z *ZapAdapter) WithFormatter(formatter logx.Formatter) logx.Adapter

Jump to

Keyboard shortcuts

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