log

package
v0.0.0-...-f8b7a73 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//CallDepth设置为1,以影响
	//调用l.output()时跳过堆栈帧为1的日志消息
	CallDepth = 1
)

Variables

This section is empty.

Functions

func Crit

func Crit(msg string, ctx ...interface{})

crit是log.crit和stats的方便别名

func Debug

func Debug(msg string, ctx ...interface{})

调试是日志的一个方便别名。使用stats进行调试

func Error

func Error(msg string, ctx ...interface{})

错误是日志的方便别名。使用stats时出错

func Info

func Info(msg string, ctx ...interface{})

信息是日志的一个方便别名。带有统计信息的信息

func Trace

func Trace(msg string, ctx ...interface{})

trace是日志的方便别名。trace with stats

func Warn

func Warn(msg string, ctx ...interface{})

warn是日志的方便别名。warn with stats

Types

This section is empty.

Jump to

Keyboard shortcuts

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