log

package
v0.0.0-...-206da09 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	F_FATAL int8 = 1 << iota
	F_ERROR
	F_WARN
	F_INFO
	F_DEBUG

	F_ALL = F_FATAL | F_ERROR | F_WARN | F_INFO | F_DEBUG
)

flag 输出标示

Variables

This section is empty.

Functions

func AddMod

func AddMod(m logIF, flag int8)

AddMod 添加模组

func Async

func Async(msgChanLen int)

Async 异步输出日志,提升性能,msgChanLen为缓冲chan的大小

func Debug

func Debug(v ...interface{})

Debug Debug

func Debugf

func Debugf(format string, v ...interface{})

Debugf Debugf

func Error

func Error(v ...interface{})

Error Error

func Errorf

func Errorf(format string, v ...interface{})

Errorf Errorf

func Fatal

func Fatal(v ...interface{})

Fatal Fatal

func Fatalf

func Fatalf(format string, v ...interface{})

Fatalf Fatalf

func Flush

func Flush()

Flush 输出还在缓冲区的log

func Info

func Info(v ...interface{})

Info Info

func Infof

func Infof(format string, v ...interface{})

Infof Infof

func ResetMod

func ResetMod()

ResetMod 重置模组

func Warn

func Warn(v ...interface{})

Warn Warn

func Warnf

func Warnf(format string, v ...interface{})

Warnf Warnf

Types

This section is empty.

Directories

Path Synopsis
module

Jump to

Keyboard shortcuts

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