logger

package
v0.0.0-...-9302511 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevelopmentConfig

func DevelopmentConfig() zap.Config

func ProductionConfig

func ProductionConfig() zap.Config

Types

type Logger

type Logger interface {
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	DPanic(args ...interface{})
	Panic(args ...interface{})
	Fatal(args ...interface{})
	Debugf(template string, args ...interface{})
	Infof(template string, args ...interface{})
	Warnf(template string, args ...interface{})
	Errorf(template string, args ...interface{})
	DPanicf(template string, args ...interface{})
	Panicf(template string, args ...interface{})
	Fatalf(template string, args ...interface{})
}

func Development

func Development(fields ...zap.Field) (Logger, error)

func New

func New(config zap.Config, fields ...zap.Field) (Logger, error)

func Production

func Production(fields ...zap.Field) (Logger, error)

func Wrap

func Wrap(l Logger, fields ...zap.Field) (Logger, error)

Jump to

Keyboard shortcuts

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