logger

package
v1.0.0-alpha.12 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Out io.Writer
	Err io.Writer
)

Functions

func FitTextWithIndent

func FitTextWithIndent(text string, indentWidth int) string

func FitTextWithIndentWithWidthMaxLimit

func FitTextWithIndentWithWidthMaxLimit(text string, indentWidth int, maxWidth int) string

func Init

func Init(opts Options)

func LogError

func LogError(err error)

func LogInfo

func LogInfo(msg string)

func LogInfoF

func LogInfoF(format string, args ...interface{})

func LogProcess

func LogProcess(msg, processMsg string, processFunc func() error) error

func LogProcessInline

func LogProcessInline(msg string, processFunc func() error) error

func LogService

func LogService(msg string)

func LogServiceF

func LogServiceF(format string, args ...interface{})

func LogServiceProcess

func LogServiceProcess(msg, processMsg string, processFunc func() error) error

func LogServiceProcessInline

func LogServiceProcessInline(msg string, processFunc func() error) error

func LogServiceState

func LogServiceState(msg, state string)

func LogState

func LogState(msg, state string)

func LogStep

func LogStep(msg string)

func LogStepF

func LogStepF(format string, args ...interface{})

func LogWarning

func LogWarning(msg string)

func LogWarningF

func LogWarningF(format string, args ...interface{})

func TerminalWidth

func TerminalWidth() int

func WithLogIndent

func WithLogIndent(f func() error) error

Types

type Options

type Options struct {
	Out, Err io.Writer
}

Jump to

Keyboard shortcuts

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