log

package
v0.0.0-...-930013b Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339Nano string = "2006-01-02T15:04:05.000000000Z07:00"
)

Variables

View Source
var DefaultLogger = Logger{Out: os.Stdout, Err: os.Stderr}

Functions

func Debugf

func Debugf(format string, a ...interface{}) (int, error)

Debug function, if the debug flag is set, then display. Do nothing otherwise If Docker is in damon mode, also send the debug info on the socket

func Errorf

func Errorf(format string, a ...interface{}) (int, error)

func Fatal

func Fatal(a ...interface{})

func Fatalf

func Fatalf(format string, a ...interface{})

func Infof

func Infof(format string, a ...interface{}) (int, error)

Types

type Fataler

type Fataler interface {
	Fatal(args ...interface{})
}

A common interface to access the Fatal method of both testing.B and testing.T.

type Logger

type Logger struct {
	Err io.Writer
	Out io.Writer
}

func (Logger) Debugf

func (l Logger) Debugf(format string, a ...interface{}) (int, error)

func (Logger) Errorf

func (l Logger) Errorf(format string, a ...interface{}) (int, error)

func (Logger) Fatalf

func (l Logger) Fatalf(format string, a ...interface{})

func (Logger) Infof

func (l Logger) Infof(format string, a ...interface{}) (int, error)

Jump to

Keyboard shortcuts

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