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

logzap

package
v1.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(z *zap.Logger) ports.Logger

func NewDevelopment added in v1.0.3

func NewDevelopment(level string) ports.Logger

NewDevelopment creates a human-friendly logger for local dev (console, colors).

func NewProduction

func NewProduction() ports.Logger

NewProduction creates a production logger (JSON, no colors).

func NewProductionWithLevel added in v1.0.3

func NewProductionWithLevel(level string) ports.Logger

NewProductionWithLevel creates a production logger with custom level.

Types

type ZapLogger

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

ZapLogger adapts zap to the shared.Logger interface.

func (*ZapLogger) Debug

func (l *ZapLogger) Debug(msg string, kv ...any)

func (*ZapLogger) Error

func (l *ZapLogger) Error(msg string, kv ...any)

func (*ZapLogger) Info

func (l *ZapLogger) Info(msg string, kv ...any)

func (*ZapLogger) Warn

func (l *ZapLogger) Warn(msg string, kv ...any)

Jump to

Keyboard shortcuts

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