xlog_config

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DebugLevel  Level = zapcore.DebugLevel
	InfoLevel         = zapcore.InfoLevel
	WarnLevel         = zapcore.WarnLevel
	ErrorLevel        = zapcore.ErrorLevel
	DPanicLevel       = zapcore.DPanicLevel
	PanicLevel        = zapcore.PanicLevel
	FatalLevel        = zapcore.FatalLevel
)

Variables

This section is empty.

Functions

func NewZapLoggerFromConfig added in v0.0.6

func NewZapLoggerFromConfig(conf Config, opts ...Option) (_ *zap.Logger, err error)

func NewZapLoggerFromJson added in v0.0.6

func NewZapLoggerFromJson(conf []byte, opts ...Option) (_ *zap.Logger, err error)

func NewZapLoggerFromOption added in v0.0.6

func NewZapLoggerFromOption(opts ...Option) (_ *zap.Logger, err error)

Types

type Config

type Config config

func NewDevConfig

func NewDevConfig() Config

func NewProdConfig

func NewProdConfig() Config

type Level

type Level = zapcore.Level

type Option

type Option func(opts *config)

func WithEncoding

func WithEncoding(enc string) Option

WithEncoding ...

func WithLevel

func WithLevel(ll string) Option

Jump to

Keyboard shortcuts

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