glog

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaskUNKNOWN = 1 << iota
	MaskDEBUG
	MaskTRACE
	MaskINFO
	MaskWARNING
	MaskERROR
	MaskFATAL
)
View Source
const (
	FlagDate = 1 << iota
	FlagTime
	FlagLongFile
	FlagShortFile
	FlagPrefix
	FlagStdFlag = FlagDate | FlagTime
)

Variables

This section is empty.

Functions

func CloseFile

func CloseFile()

func Debug

func Debug(format string, values ...any)

func Error added in v0.1.0

func Error(format string, values ...any)

func Fatal

func Fatal(format string, values ...any)

func Info

func Info(format string, values ...any)

func SetFlag added in v0.1.0

func SetFlag(f int)

func SetLogFile

func SetLogFile(path string) error

func SetMask

func SetMask(m int)

func Trace added in v0.1.0

func Trace(format string, values ...any)

func Unknown added in v0.1.0

func Unknown(format string, values ...any)

func Warning

func Warning(format string, values ...any)

Types

type File added in v0.1.0

type File struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*File) Write added in v0.1.0

func (f *File) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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