logger

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZapAdapter

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

ZapAdapter wraps a zap.SugaredLogger so it satisfies the core.Logger interface.

func NewZapAdapter

func NewZapAdapter(s *zap.SugaredLogger) *ZapAdapter

NewZapAdapter constructs a ZapAdapter from the provided sugared logger.

func (*ZapAdapter) Debug

func (z *ZapAdapter) Debug(msg string, kv ...any)

func (*ZapAdapter) Error

func (z *ZapAdapter) Error(msg string, kv ...any)

func (*ZapAdapter) Info

func (z *ZapAdapter) Info(msg string, kv ...any)

func (*ZapAdapter) Warn

func (z *ZapAdapter) Warn(msg string, kv ...any)

func (*ZapAdapter) With

func (z *ZapAdapter) With(kv ...any) core.Logger

Jump to

Keyboard shortcuts

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