log

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LvTest  = "TEST"
	LvDebug = "DEBUG"
	LvInfo  = "INFO"
	LvWarn  = "WARN"
	LvError = "ERROR"
	LvFatal = "FATAL"
)

Variables

This section is empty.

Functions

func Create

func Create(path string)

func Debug

func Debug(v ...any)

func Debugf

func Debugf(format string, v ...any)

func Error

func Error(v ...any)

func Errorf

func Errorf(format string, v ...any)

func Fatal

func Fatal(v ...any)

func Fatalf

func Fatalf(format string, v ...any)

func Info

func Info(v ...any)

func Infof

func Infof(format string, v ...any)

func Printf

func Printf(level, format string, v ...any)

func SetLevel

func SetLevel(lv string)

func Test

func Test(v ...any)

func Testf

func Testf(format string, v ...any)

func Warn

func Warn(v ...any)

func Warnf

func Warnf(format string, v ...any)

Types

type FileLog

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

func (*FileLog) Create

func (l *FileLog) Create(path string)

func (*FileLog) Output

func (l *FileLog) Output(level, s string)

func (*FileLog) SetLevel

func (l *FileLog) SetLevel(level string)

Jump to

Keyboard shortcuts

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