log

package
v0.15.0-rancher94 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 5 Imported by: 21

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 added in v0.5.3

func History() []string

func Info

func Info(args ...interface{})

func Infof

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

func SetDebug added in v0.5.3

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 added in v0.5.3

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

func (*FmtMachineLogger) Debug added in v0.5.3

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

func (*FmtMachineLogger) Debugf added in v0.5.3

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

func (*FmtMachineLogger) Error added in v0.5.3

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

func (*FmtMachineLogger) Errorf added in v0.5.3

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

func (*FmtMachineLogger) History added in v0.5.3

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

func (*FmtMachineLogger) Info added in v0.5.3

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

func (*FmtMachineLogger) Infof added in v0.5.3

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

func (*FmtMachineLogger) SetDebug added in v0.5.3

func (ml *FmtMachineLogger) SetDebug(debug bool)

func (*FmtMachineLogger) SetErrWriter added in v0.5.4

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

func (*FmtMachineLogger) SetOutWriter added in v0.5.4

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

func (*FmtMachineLogger) Warn added in v0.5.3

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

func (*FmtMachineLogger) Warnf added in v0.5.3

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

type HistoryRecorder added in v0.5.4

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

func NewHistoryRecorder added in v0.5.4

func NewHistoryRecorder() *HistoryRecorder

func (*HistoryRecorder) History added in v0.5.4

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

func (*HistoryRecorder) Record added in v0.5.4

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

func (*HistoryRecorder) Recordf added in v0.5.4

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

type MachineLogger added in v0.5.3

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 added in v0.5.3

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