logger

package
v1.0.0-alpha.16 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FitTextWithIndent

func FitTextWithIndent(text string, extraIndentWidth int) string

func FitTextWithIndentWithWidthMaxLimit

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

func FormattedLogF

func FormattedLogF(w io.Writer, format string, args ...interface{}) (int, error)

func GetErrStream

func GetErrStream() io.Writer

func GetOutStream

func GetOutStream() io.Writer

func IndentDown

func IndentDown()

func IndentUp

func IndentUp()

func Init

func Init()

func IsTerminal

func IsTerminal() bool

func LogErrorF

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

func LogErrorLn

func LogErrorLn(args ...interface{})

func LogF

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

func LogInfoF

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

func LogInfoLn

func LogInfoLn(args ...interface{})

func LogLn

func LogLn(args ...interface{})

func LogOptionalLn

func LogOptionalLn()

func LogProcess

func LogProcess(msg string, options LogProcessOptions, processFunc func() error) error

func LogProcessInline

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

func LogServiceF

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

func LogServiceLn

func LogServiceLn(args ...interface{})

func LogServiceProcess

func LogServiceProcess(msg string, options LogProcessOptions, 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 MuteErr

func MuteErr()

func MuteOut

func MuteOut()

func RawOutputOn

func RawOutputOn(f func() error) error

func SetTag

func SetTag(value string)

func TerminalWidth

func TerminalWidth() int

func UnmuteErr

func UnmuteErr()

func UnmuteOut

func UnmuteOut()

func WithIndent

func WithIndent(f func() error) error

func WithTag

func WithTag(value string, f func() error) error

func WithoutIndent

func WithoutIndent(decoratedFunc func() error) error

Types

type LogProcessOptions

type LogProcessOptions struct {
	WithIndent           bool
	WithoutBorder        bool
	WithoutLogOptionalLn bool
	InfoSectionFunc      func(err error)
}

type WriterProxy

type WriterProxy struct {
	io.Writer
}

func (WriterProxy) Write

func (p WriterProxy) Write(data []byte) (int, error)

Jump to

Keyboard shortcuts

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