log

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 6 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug bool

Functions

func RunFuncName

func RunFuncName() string

获取函数名字

Types

type Log

type Log struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Log) Debug

func (this *Log) Debug(a ...interface{})

func (*Log) Error

func (this *Log) Error(a ...interface{})

func (*Log) Info

func (this *Log) Info(a ...interface{})

func (*Log) Panic

func (this *Log) Panic(a ...interface{})

func (*Log) Println

func (this *Log) Println(a ...interface{})

func (*Log) SetLogFile

func (this *Log) SetLogFile(File string)

func (*Log) SetPrefix

func (this *Log) SetPrefix(Prefix string)

func (*Log) Warn

func (this *Log) Warn(a ...interface{})

type Logging

type Logging interface {
	Println(a ...interface{})
	Debug(a ...interface{})
	Info(a ...interface{})
	Warn(a ...interface{})
	Error(a ...interface{})
	Panic(a ...interface{})
	SetPrefix(Prefix string)
	SetLogFile(File string)
}

func NewLoger

func NewLoger() Logging

Jump to

Keyboard shortcuts

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