logger

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2017 License: Apache-2.0 Imports: 2 Imported by: 17

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) 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