logx

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLogHead

func GetLogHead(logtag string) string

func Recover

func Recover(names ...string)

Types

type LogFile

type LogFile struct {
	// contains filtered or unexported fields
}

func Instance

func Instance() *LogFile

func (*LogFile) Debug

func (log *LogFile) Debug(format string, args ...interface{})

func (*LogFile) DebugPrint

func (log *LogFile) DebugPrint(args ...interface{})

func (*LogFile) Error

func (log *LogFile) Error(format string, args ...interface{})

func (*LogFile) ErrorPrint

func (log *LogFile) ErrorPrint(args ...interface{})

func (*LogFile) Info

func (log *LogFile) Info(format string, args ...interface{})

func (*LogFile) InfoPrint

func (log *LogFile) InfoPrint(args ...interface{})

func (*LogFile) Init

func (log *LogFile) Init(path string, level int, maxsz int)

func (*LogFile) Level

func (log *LogFile) Level() int

func (*LogFile) Notice

func (log *LogFile) Notice(format string, args ...interface{})

func (*LogFile) NoticePrint

func (log *LogFile) NoticePrint(args ...interface{})

func (*LogFile) Tips

func (log *LogFile) Tips(format string, args ...interface{})

func (*LogFile) TipsPrint

func (log *LogFile) TipsPrint(args ...interface{})

func (*LogFile) Trace

func (log *LogFile) Trace(format string, args ...interface{})

func (*LogFile) TracePrint

func (log *LogFile) TracePrint(args ...interface{})

func (*LogFile) Write

func (log *LogFile) Write(data []byte)

func (*LogFile) WriteString

func (log *LogFile) WriteString(msg string)

type Logger

type Logger interface {
	Level() int
	Write(data []byte)
	WriteString(msg string)

	Tips(format string, args ...interface{})
	Info(format string, args ...interface{})
	Debug(format string, args ...interface{})
	Trace(format string, args ...interface{})
	Error(format string, args ...interface{})
	Notice(format string, args ...interface{})
}

Jump to

Keyboard shortcuts

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