logger

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: GPL-2.0 Imports: 7 Imported by: 17

Documentation

Index

Constants

View Source
const (
	LogLevelNone  int = 0
	LogLevelError int = 1
	LogLevelWarn  int = 2
	LogLevelInfo  int = 3
	LogLevelDebug int = 4
)

Variables

This section is empty.

Functions

func Debug

func Debug(v ...interface{})

func Error

func Error(v ...interface{})

func Info

func Info(v ...interface{})

func SetLogLevel

func SetLogLevel(targetLevel int)

func SetPrintLevel

func SetPrintLevel(targetLevel int)

func StartUp

func StartUp(v ...interface{})

func Warn

func Warn(v ...interface{})

Types

type MyLog

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

func NewMyLog

func NewMyLog(logType string) *MyLog

func NewMyLogMinute

func NewMyLogMinute(logType string) *MyLog

func NewMyLogNoTime

func NewMyLogNoTime(logType string) *MyLog

func (*MyLog) Println

func (mylog *MyLog) Println(v ...interface{})

func (*MyLog) SPrintln

func (mylog *MyLog) SPrintln(str string)

Jump to

Keyboard shortcuts

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