zap

package module
v2.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: Apache-2.0 Imports: 7 Imported by: 4

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 added in v2.3.0

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 added in v2.0.3

func WithNamespace(namespace string) logger.Option

Types

type Options

type Options struct {
	logger.Options
}

Jump to

Keyboard shortcuts

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