logger

package
v1.0.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 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(msg string)

func LogInfoF

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

func LogInfoLn

func LogInfoLn(msg string)

func LogOptionalLn

func LogOptionalLn()

func LogProcess

func LogProcess(msg, processMsg string, 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(msg string)

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 MuteErr

func MuteErr()

func MuteOut

func MuteOut()

func ResetTag

func ResetTag(value string)

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(f func() error) error

Types

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