logging

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package logging implements the logger for the pack CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithClock added in v0.7.0

func WithClock(clock func() time.Time) func(writers *LogWithWriters)

func WithVerbose added in v0.11.0

func WithVerbose() func(writers *LogWithWriters)

Types

type LogWithWriters added in v0.7.0

type LogWithWriters struct {
	sync.Mutex
	log.Logger
	// contains filtered or unexported fields
}

func NewLogWithWriters

func NewLogWithWriters(stdout, stderr io.Writer, opts ...func(*LogWithWriters)) *LogWithWriters

NewLogWithWriters creates a logger to be used with pack CLI.

func (*LogWithWriters) HandleLog added in v0.7.0

func (lw *LogWithWriters) HandleLog(e *log.Entry) error

func (*LogWithWriters) IsVerbose added in v0.7.0

func (lw *LogWithWriters) IsVerbose() bool

func (*LogWithWriters) WantQuiet added in v0.7.0

func (lw *LogWithWriters) WantQuiet(f bool)

func (*LogWithWriters) WantTime added in v0.7.0

func (lw *LogWithWriters) WantTime(f bool)

func (*LogWithWriters) WantVerbose added in v0.7.0

func (lw *LogWithWriters) WantVerbose(f bool)

func (*LogWithWriters) Writer added in v0.7.0

func (lw *LogWithWriters) Writer() io.Writer

func (*LogWithWriters) WriterForLevel added in v0.7.0

func (lw *LogWithWriters) WriterForLevel(level logging.Level) io.Writer

Jump to

Keyboard shortcuts

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