logger

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2017 License: Apache-2.0 Imports: 7 Imported by: 4 modules, 26 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger implements a per-plan logger.

func New

func New(plan string) *Logger

New constructs a new per-plan logger.

func (*Logger) BeginOutput

func (l *Logger) BeginOutput()

BeginOutput demarcates an output section

func (*Logger) BuildStep

func (l *Logger) BuildStep(step, command string)

BuildStep logs a build step.

func (*Logger) CacheHit

func (l *Logger) CacheHit(imageID string)

CacheHit logs a cache hit.

func (*Logger) CopyPath

func (l *Logger) CopyPath(file1, file2 string)

CopyPath logs a copied path

func (*Logger) EndOutput

func (l *Logger) EndOutput()

EndOutput ends an output section

func (*Logger) Error

func (l *Logger) Error(err interface{})

Error prints an error to the terminal all fancy-like.

func (*Logger) EvalResponse

func (l *Logger) EvalResponse(response string)

EvalResponse logs the eval response

func (*Logger) Finish

func (l *Logger) Finish(response string)

Finish logs the finish.

func (*Logger) Good added in v0.4.2

func (l *Logger) Good(str string) string

Good reports a nice status in green to indicate successes.

func (*Logger) Notice added in v0.4.2

func (l *Logger) Notice(str string) string

Notice is an arbitrary message explaining what the heck is going on.

func (*Logger) Output added in v0.4.2

func (l *Logger) Output() io.Writer

Output returns the output buffer.

func (*Logger) Plan added in v0.5.0

func (l *Logger) Plan() string

Plan gets the plan name specified at construction time

func (*Logger) Print added in v0.4.2

func (l *Logger) Print(str string)

Print is a bare-bones print statement.

func (*Logger) Progress added in v0.5.0

func (l *Logger) Progress(prefix string, count float64)

Progress is a representation of a progress meter.

func (*Logger) Record added in v0.4.2

func (l *Logger) Record()

Record starts recording to the output buffer, which will be returned by the Output() method.

func (*Logger) Tag

func (l *Logger) Tag(name string)

Tag logs a tag

Jump to

Keyboard shortcuts

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