util

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: LGPL-3.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadTestConfig added in v1.3.0

func ReadTestConfig(testConfigFile string) (map[string]string, error)

Types

type Level added in v1.7.0

type Level uint8
const (
	LogLevel_DEBUG Level = iota
	LogLevel_INFO
	LogLevel_WARN
	LogLevel_ERROR
	LogLevel_FATAL
)

type Logger

type Logger interface {
	Debug(v ...interface{})
	Debugf(format string, v ...interface{})
	Info(v ...interface{})
	Infof(format string, v ...interface{})
	Warn(v ...interface{})
	Warnf(format string, v ...interface{})
	Error(v ...interface{})
	Errorf(format string, v ...interface{})
	Fatal(v ...interface{})
	Fatalf(format string, v ...interface{})
}

func NewLogger added in v1.7.0

func NewLogger(level Level) Logger

type StdLogAdapter added in v1.7.0

type StdLogAdapter struct {
	Level Level
	// contains filtered or unexported fields
}

func (*StdLogAdapter) Debug added in v1.7.0

func (s *StdLogAdapter) Debug(v ...interface{})

func (*StdLogAdapter) Debugf added in v1.7.0

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

func (*StdLogAdapter) Error added in v1.7.0

func (s *StdLogAdapter) Error(v ...interface{})

func (*StdLogAdapter) Errorf added in v1.7.0

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

func (*StdLogAdapter) Fatal added in v1.7.0

func (s *StdLogAdapter) Fatal(v ...interface{})

func (*StdLogAdapter) Fatalf added in v1.7.0

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

func (*StdLogAdapter) Info added in v1.7.0

func (s *StdLogAdapter) Info(v ...interface{})

func (*StdLogAdapter) Infof added in v1.7.0

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

func (*StdLogAdapter) Print added in v1.7.0

func (s *StdLogAdapter) Print(v ...interface{})

func (*StdLogAdapter) Printf added in v1.7.0

func (s *StdLogAdapter) Printf(format string, v ...interface{})

func (*StdLogAdapter) Println added in v1.7.0

func (s *StdLogAdapter) Println(v ...interface{})

func (*StdLogAdapter) Warn added in v1.7.0

func (s *StdLogAdapter) Warn(v ...interface{})

func (*StdLogAdapter) Warnf added in v1.7.0

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

type StdLogger added in v1.7.0

type StdLogger interface {
	Fatal(v ...interface{})
	Fatalf(format string, v ...interface{})
	Print(v ...interface{})
	Println(v ...interface{})
	Printf(format string, v ...interface{})
}

Jump to

Keyboard shortcuts

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