logger

package
v0.0.0-...-cc42ea7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log 是全局日志记录器
	Log *zap.Logger
)

Functions

func Init

func Init(lvl int, timeFormat string)

Init 通过输入参数初始化日志 lvl - 全局日志级别:Debug(-1),Info(0),Warn(1),Error(2),DPanic(3),Panic(4),Fatal(5) timeFormat - 默认使用空字符串的记录器的自定义时间格式

Types

This section is empty.

Jump to

Keyboard shortcuts

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