logger

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2018 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OutputFile bool

OutputFile .

Functions

func CallerEncoder

func CallerEncoder(caller zapcore.EntryCaller, enc zapcore.PrimitiveArrayEncoder)

CallerEncoder 爲 caller 增加 函數名稱 默認只有檔案名行號

filename:lineNum:funcName

func DPanic

func DPanic(name string, fields ...zapcore.Field)

DPanic .

func Debug

func Debug(name string, fields ...zapcore.Field)

Debug .

func Error

func Error(name string, fields ...zapcore.Field)

Error .

func Fatal

func Fatal(name string, fields ...zapcore.Field)

Fatal .

func Info

func Info(name string, fields ...zapcore.Field)

Info .

func Init

func Init()

Init 初始化 日誌 單件

func Panic

func Panic(name string, fields ...zapcore.Field)

Panic .

func Warn

func Warn(name string, fields ...zapcore.Field)

Warn .

Types

This section is empty.

Jump to

Keyboard shortcuts

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