logger

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSmartTerminal added in v1.3.2

func IsSmartTerminal(w io.Writer) bool

IsSmartTerminal returns true if the writer w is a terminal AND we think that the terminal is smart enough to use VT escape codes etc.

func IsTerminal added in v1.3.2

func IsTerminal(w io.Writer) bool

IsTerminal returns true if the writer w is a terminal

Types

type Logger added in v1.3.2

type Logger struct {
	Writer io.Writer

	Verbose bool
	// contains filtered or unexported fields
}

Logger is the cli's logger.Logger implementation

func NewLogger added in v1.3.2

func NewLogger() *Logger

func (*Logger) Commencing added in v1.3.2

func (l *Logger) Commencing(command string)

func (*Logger) Error added in v1.3.2

func (l *Logger) Error(message string)

func (*Logger) Errorf added in v1.3.2

func (l *Logger) Errorf(message string, args ...interface{})

func (*Logger) Info added in v1.3.2

func (l *Logger) Info(message string)

func (*Logger) Infof added in v1.3.2

func (l *Logger) Infof(message string, args ...interface{})

func (*Logger) Print added in v1.4.0

func (l *Logger) Print(message string)

func (*Logger) Printf added in v1.4.0

func (l *Logger) Printf(message string, args ...interface{})

func (*Logger) Prompt added in v1.3.2

func (l *Logger) Prompt(message string)

func (*Logger) Success added in v1.3.2

func (l *Logger) Success(message string)

func (*Logger) Successf added in v1.3.2

func (l *Logger) Successf(message string, args ...interface{})

func (*Logger) Warn added in v1.3.2

func (l *Logger) Warn(message string)

func (*Logger) Warnf added in v1.3.2

func (l *Logger) Warnf(message string, args ...interface{})

Jump to

Keyboard shortcuts

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