Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2026 Changes in this version + var AvailableFormats = Formats + func FromContext(ctx context.Context) *zap.SugaredLogger + func New(debug bool, format Format) *zap.Logger + func NewDefault() *zap.Logger + func NewFromOptions(o Options) *zap.Logger + func WithLog(ctx context.Context, log *zap.SugaredLogger) context.Context + type Format string + const FormatConsole + const FormatJSON + func (f *Format) Set(s string) error + func (f *Format) String() string + func (f *Format) Type() string + type Formats []Format + func (f Formats) Contains(s Format) bool + func (f Formats) String() string + type Options struct + Debug bool + Format Format + func NewDefaultOptions() Options + func (o *Options) AddFlags(fs *flag.FlagSet) + func (o *Options) AddPFlags(fs *pflag.FlagSet) + func (o *Options) Validate() error