log

package
v0.0.0-...-a50f796 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(fmtString string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(fmtString string, args ...interface{})

func History

func History() []string

func Info

func Info(args ...interface{})

func Infof

func Infof(fmtString string, args ...interface{})

func SetDebug

func SetDebug(debug bool)

func SetErrWriter

func SetErrWriter(err io.Writer)

func SetOutWriter

func SetOutWriter(out io.Writer)

func Warn

func Warn(args ...interface{})

func Warnf

func Warnf(fmtString string, args ...interface{})

Types

type FmtMachineLogger

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

func (*FmtMachineLogger) Debug

func (ml *FmtMachineLogger) Debug(args ...interface{})

func (*FmtMachineLogger) Debugf

func (ml *FmtMachineLogger) Debugf(fmtString string, args ...interface{})

func (*FmtMachineLogger) Error

func (ml *FmtMachineLogger) Error(args ...interface{})

func (*FmtMachineLogger) Errorf

func (ml *FmtMachineLogger) Errorf(fmtString string, args ...interface{})

func (*FmtMachineLogger) History

func (ml *FmtMachineLogger) History() []string

func (*FmtMachineLogger) Info

func (ml *FmtMachineLogger) Info(args ...interface{})

func (*FmtMachineLogger) Infof

func (ml *FmtMachineLogger) Infof(fmtString string, args ...interface{})

func (*FmtMachineLogger) SetDebug

func (ml *FmtMachineLogger) SetDebug(debug bool)

func (*FmtMachineLogger) SetErrWriter

func (ml *FmtMachineLogger) SetErrWriter(err io.Writer)

func (*FmtMachineLogger) SetOutWriter

func (ml *FmtMachineLogger) SetOutWriter(out io.Writer)

func (*FmtMachineLogger) Warn

func (ml *FmtMachineLogger) Warn(args ...interface{})

func (*FmtMachineLogger) Warnf

func (ml *FmtMachineLogger) Warnf(fmtString string, args ...interface{})

type HistoryRecorder

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

func NewHistoryRecorder

func NewHistoryRecorder() *HistoryRecorder

func (*HistoryRecorder) History

func (ml *HistoryRecorder) History() []string

func (*HistoryRecorder) Record

func (ml *HistoryRecorder) Record(args ...interface{})

func (*HistoryRecorder) Recordf

func (ml *HistoryRecorder) Recordf(fmtString string, args ...interface{})

type MachineLogger

type MachineLogger interface {
	SetDebug(debug bool)

	SetOutWriter(io.Writer)
	SetErrWriter(io.Writer)

	Debug(args ...interface{})
	Debugf(fmtString string, args ...interface{})

	Error(args ...interface{})
	Errorf(fmtString string, args ...interface{})

	Info(args ...interface{})
	Infof(fmtString string, args ...interface{})

	Warn(args ...interface{})
	Warnf(fmtString string, args ...interface{})

	History() []string
}

func NewFmtMachineLogger

func NewFmtMachineLogger() MachineLogger

NewFmtMachineLogger creates a MachineLogger implementation used by the drivers

Jump to

Keyboard shortcuts

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