logger

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(tc *trace.Context, msg string, fields ...zap.Field)

Debug 日志

func Error

func Error(tc *trace.Context, msg string, fields ...zap.Field)

Error 日志

func Fatal

func Fatal(tc *trace.Context, msg string, fields ...zap.Field)

Fatal 日志

func Info

func Info(tc *trace.Context, msg string, fields ...zap.Field)

Info 日志

func NewLog

func NewLog() (*log.Logger, error)

NewLog new log logger write 2 stdout

func NewLog2File added in v1.0.8

func NewLog2File(dir, name, timePattern string) (*log.Logger, error)

NewLog2File new log logger write 2 file

func Panic

func Panic(tc *trace.Context, msg string, fields ...zap.Field)

Panic 日志

func Warn

func Warn(tc *trace.Context, msg string, fields ...zap.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