log

package
v1.8.20220610 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 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 ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Fatal

func Fatal(v ...interface{})

func Fatalf

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

func Info

func Info(v ...interface{})

func Infof

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

func Printf

func Printf(level, format string, v ...interface{})

func SetLevel

func SetLevel(lv string)

func Test

func Test(v ...interface{})

func Testf

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

func Warn

func Warn(v ...interface{})

func Warnf

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

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