zap

package
Version: v0.0.0-...-be8c276 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...logger.Option) (logger.Logger, error)

New builds a new logger based on options

func WithCallerSkip

func WithCallerSkip(i int) logger.Option

func WithConfig

func WithConfig(c zap.Config) logger.Option

WithConfig pass zap.Config to logger

func WithEncoderConfig

func WithEncoderConfig(c zapcore.EncoderConfig) logger.Option

WithEncoderConfig pass zapcore.EncoderConfig to logger

func WithNamespace

func WithNamespace(namespace string) logger.Option

func WithOutput

func WithOutput(out io.Writer) logger.Option

Types

type Options

type Options struct {
	logger.Options
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL