zap

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 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 ...Option) (*logger, error)

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithConsole

func WithConsole(Console bool) Option

func WithFileName

func WithFileName(FileName string) Option

func WithLevel

func WithLevel(Level preset.Level) Option

func WithMaxAge

func WithMaxAge(MaxAge int) Option

func WithMaxBackups

func WithMaxBackups(MaxBackups int) Option

func WithMaxSize

func WithMaxSize(MaxSize int) Option

Jump to

Keyboard shortcuts

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