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: 3,909

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.3

func History() []string

func Info

func Info(args ...interface{})

func Infof

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

func RedirectStdOutToStdErr added in v0.5.3

func RedirectStdOutToStdErr()

RedirectStdOutToStdErr prevents any log from corrupting the output

func SetDebug added in v0.5.3

func SetDebug(debug bool)

func SetOutput added in v0.5.3

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

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

func (*FmtMachineLogger) Fatalf added in v0.5.3

func (ml *FmtMachineLogger) Fatalf(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) RedirectStdOutToStdErr added in v0.5.3

func (ml *FmtMachineLogger) RedirectStdOutToStdErr()

func (*FmtMachineLogger) SetDebug added in v0.5.3

func (ml *FmtMachineLogger) SetDebug(debug bool)

func (*FmtMachineLogger) SetOutput added in v0.5.3

func (ml *FmtMachineLogger) SetOutput(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 LogrusMachineLogger added in v0.5.3

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

func (*LogrusMachineLogger) Debug added in v0.5.3

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

func (*LogrusMachineLogger) Debugf added in v0.5.3

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

func (*LogrusMachineLogger) Error added in v0.5.3

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

func (*LogrusMachineLogger) Errorf added in v0.5.3

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

func (*LogrusMachineLogger) Fatal added in v0.5.3

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

func (*LogrusMachineLogger) Fatalf added in v0.5.3

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

func (*LogrusMachineLogger) History added in v0.5.3

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

func (*LogrusMachineLogger) Info added in v0.5.3

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

func (*LogrusMachineLogger) Infof added in v0.5.3

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

func (*LogrusMachineLogger) Logger added in v0.5.3

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

func (*LogrusMachineLogger) RedirectStdOutToStdErr added in v0.5.3

func (ml *LogrusMachineLogger) RedirectStdOutToStdErr()

RedirectStdOutToStdErr prevents any log from corrupting the output

func (*LogrusMachineLogger) SetDebug added in v0.5.3

func (ml *LogrusMachineLogger) SetDebug(debug bool)

func (*LogrusMachineLogger) SetOutput added in v0.5.3

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

func (*LogrusMachineLogger) Warn added in v0.5.3

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

func (*LogrusMachineLogger) Warnf added in v0.5.3

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

type MachineFormatter added in v0.5.3

type MachineFormatter struct {
}

func (*MachineFormatter) Format added in v0.5.3

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

type MachineLogger added in v0.5.3

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.3

func NewFmtMachineLogger() MachineLogger

NewFmtMachineLogger creates a MachineLogger implementation used by the drivers

func NewLogrusMachineLogger added in v0.5.3

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