logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(msg string, field ...zap.Field)

func Debugf

func Debugf(msg string, field ...interface{})

func Error

func Error(msg string, field ...zap.Field)

func Errorf

func Errorf(msg string, field ...interface{})

func ISO8601TimeEncoder

func ISO8601TimeEncoder(t time.Time, enc zapcore.PrimitiveArrayEncoder)

func Info

func Info(msg string, field ...zap.Field)

func Infof

func Infof(msg string, field ...interface{})

func New

func New(env Env) *zap.Logger

func ReplaceGlobal

func ReplaceGlobal(logger *zap.Logger) error

func Sync

func Sync() error

func Warn

func Warn(msg string, field ...zap.Field)

Types

type Env

type Env string
const (
	EnvProduct Env = "product"
	EnvDevelop Env = "develop"
)

Jump to

Keyboard shortcuts

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