checkerror

package module
v0.0.0-...-8dfdd5d Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2019 License: MIT Imports: 5 Imported by: 0

README

checkerror

usage
func TestNewCheckError(t *testing.T) {
	CheckError(io.EOF)
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger *zap.Logger
View Source
var Version string

git commit hash

Functions

func CheckError

func CheckError(err error)

func DPanic

func DPanic(msg string, fields ...zap.Field)

func Debug

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

func Error

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

func Fatal

func Fatal(msg string, fields ...zap.Field)

func Info

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

func NewLoggerByWrapZap

func NewLoggerByWrapZap(level zapcore.LevelEnabler, version string, writes ...zapcore.WriteSyncer) *zap.Logger

func Panic

func Panic(msg string, fields ...zap.Field)

func Print

func Print(objs ...interface{})

func Printf

func Printf(format string, objs ...interface{})

func Sync

func Sync()

func Warn

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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