Jlog

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DPanic

func DPanic(keysAndValues ...interface{})

func DPanicW added in v0.1.7

func DPanicW(str string, keysAndValues ...interface{})

func Debug

func Debug(keysAndValues ...interface{})

func DebugW added in v0.1.7

func DebugW(str string, keysAndValues ...interface{})

func Error

func Error(keysAndValues ...interface{})

func ErrorW added in v0.1.7

func ErrorW(str string, keysAndValues ...interface{})

func Fatal

func Fatal(keysAndValues ...interface{})

func FatalW added in v0.1.7

func FatalW(str string, keysAndValues ...interface{})

func GetLogger added in v0.1.7

func GetLogger(level string) io.Writer

func Info

func Info(keysAndValues ...interface{})

func InfoW added in v0.1.7

func InfoW(str string, keysAndValues ...interface{})

func InitLog

func InitLog(config LogConfig)

func Panic

func Panic(keysAndValues ...interface{})

func PanicW added in v0.1.7

func PanicW(str string, keysAndValues ...interface{})

func Warn

func Warn(keysAndValues ...interface{})

func WarnW added in v0.1.7

func WarnW(str string, keysAndValues ...interface{})

Types

type LogConfig added in v0.1.7

type LogConfig struct {
	Debug         bool
	Path          string
	Level         string
	MaxSize       int
	MaxBackups    int
	MaxAge        int
	Json          bool
	InitialFields map[string]interface{}
}

Jump to

Keyboard shortcuts

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