xlog

package
v0.0.0-...-f0a4171 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoLog Severity = iota
	WarningLog
	ErrorLog
	FatalLog
	NumSeverity
	SInfoLog    = "info"
	SWarningLog = "warning"
	SErrorLog   = "error"
	SFatalLog   = "fatal"
)

Variables

This section is empty.

Functions

func Depth

func Depth(level Severity, format string, depth int, args ...interface{})

func Error

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

func ErrorDepth

func ErrorDepth(format string, depth int, args ...interface{})

func Flush

func Flush()

func Info

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

func InfoDepth

func InfoDepth(format string, depth int, args ...interface{})

func Panic

func Panic(info interface{})

func PanicDepth

func PanicDepth(format string, depth int, args ...interface{})

func SetLogDir

func SetLogDir(dir string)

func SetLogLevel

func SetLogLevel(level string)

func Warning

func Warning(format string, args ...interface{})

func WarningDepth

func WarningDepth(format string, depth int, args ...interface{})

Types

type Severity

type Severity int32

type XLog

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

func Logger

func Logger(level Severity, depth int) *XLog

func (*XLog) Printf

func (l *XLog) Printf(s string, i ...interface{})

func (*XLog) Write

func (l *XLog) 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