Documentation
¶
Overview ¶
Package logzap adapts zap logging to the core logger port.
Use NewProduction or NewDevelopment when application wiring needs a concrete ports.Logger. The adapter owns zap-specific dependencies in contrib so stable core packages do not import zap.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDevelopment ¶
NewDevelopment creates a human-friendly logger for local dev (console, colors).
func NewProduction ¶
NewProduction creates a production logger (JSON, no colors).
func NewProductionWithLevel ¶
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.
Click to show internal directories.
Click to hide internal directories.