logs

package
v0.0.0-...-8ac3aab Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitGlobalLogger

func InitGlobalLogger(filePath string)

Types

type Info

type Info struct {
	Code    int
	Message string
}

type Logger

type Logger struct {
	*log.Logger
	File *os.File
}
var (
	GlobalLogger *Logger
)

func NewLogger

func NewLogger(filePath string) (logger *Logger)

func (*Logger) AllPrint

func (lgr *Logger) AllPrint(text string)

func (*Logger) Record

func (lgr *Logger) Record(info Info)

Jump to

Keyboard shortcuts

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