routine

package
v0.0.0-...-52087c1 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_LEVEL_DEBUG = 0
	LOG_LEVEL_INFO  = 1
	LOG_LEVEL_WARN  = 2
	LOG_LEVEL_ERROR = 3
)

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Info

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

func Panic

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

func SetLogLevel

func SetLogLevel(level int)

func SetShowLog

func SetShowLog(show bool)

func Warn

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

Types

type Log

type Log struct {
	Level int
	//File of log
	File *os.File
	// contains filtered or unexported fields
}

func NewLog

func NewLog(path string) (*Log, error)

func (*Log) Debug

func (l *Log) Debug(format string, v ...interface{})

func (*Log) Error

func (l *Log) Error(format string, v ...interface{})

func (*Log) Info

func (l *Log) Info(format string, v ...interface{})

func (*Log) OpenFile

func (l *Log) OpenFile() error

func (*Log) Panic

func (l *Log) Panic(format string, v ...interface{})

func (*Log) SetLogLevel

func (l *Log) SetLogLevel(level int)

func (*Log) Warn

func (l *Log) Warn(format string, v ...interface{})

Jump to

Keyboard shortcuts

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