logger

package
v0.0.0-...-b4d0808 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_LEVEL_DISABLE = -1
	LOG_LEVEL_TRACE   = 0
	LOG_LEVEL_WARN    = 1
	LOG_LEVEL_DEBUG   = 2
	LOG_LEVEL_INFO    = 3
	LOG_LEVEL_ERROR   = 4
	LOG_LEVEL_FATAL   = 5

	LogChanCacheSize = 10 //10 chan 来缓冲

)
View Source
const (
	LOG_NO_FILE    = 0x0
	LOG_LONG_FILE  = 0x1
	LOG_SHORT_FILE = 0x2
	LOG_TIME       = 0x4
)

log flag ,which can be combined by bit.

Variables

This section is empty.

Functions

func LOGD

func LOGD(v ...interface{})

func LOGE

func LOGE(v ...interface{})

func LOGF

func LOGF(v ...interface{})

func LOGI

func LOGI(v ...interface{})

func LOGT

func LOGT(v ...interface{})

func LOGW

func LOGW(v ...interface{})

func OutputInCmd

func OutputInCmd(inCmd bool)

func SetFlags

func SetFlags(flag int)

func SetLogLevel

func SetLogLevel(l int)

func SetOutput

func SetOutput(w io.Writer)

Types

This section is empty.

Jump to

Keyboard shortcuts

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