Help us shape the future of Go! Take the 2026 Go Developer Survey

logger

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log       *ZLogger
	Verbosity int
)

Functions

func Init

func Init(v int) error

Init initializes the global logger using zerolog.

func Sync

func Sync()

Sync is a no-op for zerolog, kept for compatibility.

Types

type ZLogger

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

ZLogger is a wrapper around zerolog to mimic zap's SugaredLogger API to maintain compatibility with existing codebase

func (*ZLogger) Debugw

func (z *ZLogger) Debugw(msg string, keysAndValues ...interface{})

func (*ZLogger) Errorw

func (z *ZLogger) Errorw(msg string, keysAndValues ...interface{})

func (*ZLogger) Info

func (z *ZLogger) Info(msg string)

func (*ZLogger) Infow

func (z *ZLogger) Infow(msg string, keysAndValues ...interface{})

func (*ZLogger) Tracew

func (z *ZLogger) Tracew(msg string, keysAndValues ...interface{})

Jump to

Keyboard shortcuts

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