log

package
v0.0.0-...-e3cb19e Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2022 License: MIT Imports: 9 Imported by: 5

Documentation

Index

Constants

View Source
const GLFmt = `{"version":"1.1","host":"ipx","message":"%v","level":%d}`

Variables

This section is empty.

Functions

func MakeLogger

func MakeLogger(_lvl string)

func MakeUDPLogger

func MakeUDPLogger(_lvl string, url string) error

Types

type Conf

type Conf struct {
	LVL     string `default:"info"`
	UDPAddr string `default:"0.0.0.0:12201" split_words:"true"`
}

type LVLWrap

type LVLWrap struct {
	// contains filtered or unexported fields
}
var Logger *LVLWrap

func (*LVLWrap) Debug

func (l *LVLWrap) Debug(ctx context.Context, v ...interface{})

func (*LVLWrap) Debugf

func (l *LVLWrap) Debugf(ctx context.Context, format string, v ...interface{})

func (*LVLWrap) Error

func (l *LVLWrap) Error(ctx context.Context, v ...interface{})

func (*LVLWrap) Errorf

func (l *LVLWrap) Errorf(ctx context.Context, format string, v ...interface{})

func (*LVLWrap) Fatal

func (l *LVLWrap) Fatal(errV error)

func (*LVLWrap) Info

func (l *LVLWrap) Info(ctx context.Context, v ...interface{})

func (*LVLWrap) Infof

func (l *LVLWrap) Infof(ctx context.Context, format string, v ...interface{})

func (*LVLWrap) Trace

func (l *LVLWrap) Trace(ctx context.Context, v ...interface{})

func (*LVLWrap) Tracef

func (l *LVLWrap) Tracef(ctx context.Context, format string, v ...interface{})

func (*LVLWrap) Warn

func (l *LVLWrap) Warn(ctx context.Context, v ...interface{})

func (*LVLWrap) Warnf

func (l *LVLWrap) Warnf(ctx context.Context, format string, v ...interface{})

Jump to

Keyboard shortcuts

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