zapbuilder

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogger

func NewLogger(opts ...Option) *zap.Logger

Types

type Option

type Option func(f *options)

Option is a configuration parameter.

func WithEncoder

func WithEncoder(encType string) Option

func WithFields

func WithFields(fields ...zap.Field) Option

func WithLevel

func WithLevel(level string) Option

Jump to

Keyboard shortcuts

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