log

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *logger.Helper
)

Functions

func CheckLevel

func CheckLevel(level logger.Level) bool

检查当前日志输出级别

func Debug

func Debug(tpl string, a ...interface{})

func Display

func Display(data ...interface{})

Display print the data in console

func Error

func Error(tpl string, a ...interface{})

func Fatal

func Fatal(tpl string, a ...interface{})

func GetDisplayString

func GetDisplayString(data ...interface{}) string

GetDisplayString return data print string

func GetLevel

func GetLevel() logger.Level

获取当前日志级别

func Info

func Info(tpl string, a ...interface{})

func IsDev

func IsDev() bool

是否开发模式

func IsTrace

func IsTrace() bool

是否Trace模式

func PrintPointerInfo

func PrintPointerInfo(buf *bytes.Buffer, headlen int, pointers *pointerInfo)

PrintPointerInfo dump pointer value

func Printf

func Printf(tpl string, a ...interface{})

func Println

func Println(a ...interface{})

func SetDisableColor

func SetDisableColor()

禁用颜色

func SetEnableColor

func SetEnableColor()

显示颜色

func Stack

func Stack(skip int, indent string) []byte

Stack get stack bytes

func Trace

func Trace(tpl string, a ...interface{})

func Warn

func Warn(tpl string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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