log

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2015 License: Apache-2.0 Imports: 7 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 Fatal

func Fatal(args ...interface{})

func Fatalf

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

func History added in v0.5.5

func History() []string

func Info

func Info(args ...interface{})

func Infof

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

func RedirectStdOutToStdErr

func RedirectStdOutToStdErr()

RedirectStdOutToStdErr prevents any log from corrupting the output

func SetDebug added in v0.5.5

func SetDebug(debug bool)

func SetOutput

func SetOutput(out io.Writer)

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type FmtMachineLogger added in v0.5.5

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

func (*FmtMachineLogger) Debug added in v0.5.5

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

func (*FmtMachineLogger) Debugf added in v0.5.5

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

func (*FmtMachineLogger) Error added in v0.5.5

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

func (*FmtMachineLogger) Errorf added in v0.5.5

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

func (*FmtMachineLogger) Fatal added in v0.5.5

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

func (*FmtMachineLogger) Fatalf added in v0.5.5

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

func (*FmtMachineLogger) History added in v0.5.5

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

func (*FmtMachineLogger) Info added in v0.5.5

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

func (*FmtMachineLogger) Infof added in v0.5.5

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

func (*FmtMachineLogger) RedirectStdOutToStdErr

func (ml *FmtMachineLogger) RedirectStdOutToStdErr()

func (*FmtMachineLogger) SetDebug added in v0.5.5

func (ml *FmtMachineLogger) SetDebug(debug bool)

func (*FmtMachineLogger) SetOutput

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

func (*FmtMachineLogger) Warn added in v0.5.5

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

func (*FmtMachineLogger) Warnf added in v0.5.5

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

type LogrusMachineLogger

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

func (*LogrusMachineLogger) Debug

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

func (*LogrusMachineLogger) Debugf

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

func (*LogrusMachineLogger) Error

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

func (*LogrusMachineLogger) Errorf

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

func (*LogrusMachineLogger) Fatal

func (ml *LogrusMachineLogger) Fatal(args ...interface{})

func (*LogrusMachineLogger) Fatalf

func (ml *LogrusMachineLogger) Fatalf(fmtString string, args ...interface{})

func (*LogrusMachineLogger) History

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

func (*LogrusMachineLogger) Info

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

func (*LogrusMachineLogger) Infof

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

func (*LogrusMachineLogger) Logger

func (ml *LogrusMachineLogger) Logger() *logrus.Logger

func (*LogrusMachineLogger) RedirectStdOutToStdErr

func (ml *LogrusMachineLogger) RedirectStdOutToStdErr()

RedirectStdOutToStdErr prevents any log from corrupting the output

func (*LogrusMachineLogger) SetDebug

func (ml *LogrusMachineLogger) SetDebug(debug bool)

func (*LogrusMachineLogger) SetOutput

func (ml *LogrusMachineLogger) SetOutput(out io.Writer)

func (*LogrusMachineLogger) Warn

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

func (*LogrusMachineLogger) Warnf

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

type MachineFormatter

type MachineFormatter struct {
}

func (*MachineFormatter) Format

func (d *MachineFormatter) Format(entry *logrus.Entry) ([]byte, error)

type MachineLogger added in v0.5.5

type MachineLogger interface {
	RedirectStdOutToStdErr()

	SetDebug(debug bool)

	SetOutput(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{})

	Fatal(args ...interface{})
	Fatalf(fmtString string, args ...interface{})

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

	History() []string
}
var (
	Logger MachineLogger
)

func NewFmtMachineLogger added in v0.5.5

func NewFmtMachineLogger() MachineLogger

NewFmtMachineLogger creates a MachineLogger implementation used by the drivers

func NewLogrusMachineLogger

func NewLogrusMachineLogger() MachineLogger

NewLogrusMachineLogger creates the MachineLogger implementation used by the docker-machine

Jump to

Keyboard shortcuts

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