output

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	// contains filtered or unexported fields
}
type Output interface {
	NoColorFlag() bool
	SetNoColorFlag(b bool)
	LogFile() string
	SetLogFile(f string)
	QuietFlag() bool
	SetQuietFlag(b bool)
	DebugFlag() bool
	SetDebugFlag(b bool)
	VerboseFlag() bool
	SetVerboseFlag(b bool)
	Output()
}
var (
	L *Output
)

func GetInstance

func GetInstance() *Output

GetInstance returns a new instance of Output, each task has it's own instance.

func NewOutput

func NewOutput(noColor bool, logFile string, quiet bool, debug bool, dev bool, verbose bool) *Output

func (*Output) Debug added in v0.0.16

func (o *Output) Debug(m string, values ...interface{})

func (*Output) DebugFlag

func (o *Output) DebugFlag() bool

func (*Output) Error added in v0.0.16

func (o *Output) Error(m string, values ...interface{})

func (*Output) Fatal added in v0.0.16

func (o *Output) Fatal(m string, values ...interface{})

func (*Output) Info added in v0.0.16

func (o *Output) Info(m string, values ...interface{})

func (*Output) LogFileFlag added in v0.0.16

func (o *Output) LogFileFlag() string

func (*Output) NoColorFlag

func (o *Output) NoColorFlag() bool

func (*Output) Normal added in v0.0.16

func (o *Output) Normal(m string, values ...interface{})

func (*Output) QuietFlag

func (o *Output) QuietFlag() bool

func (*Output) SetDebugFlag

func (o *Output) SetDebugFlag(b bool)

func (*Output) SetLogFileFlag added in v0.0.16

func (o *Output) SetLogFileFlag(f string)

func (*Output) SetNoColorFlag

func (o *Output) SetNoColorFlag(b bool)

func (*Output) SetQuietFlag

func (o *Output) SetQuietFlag(b bool)

func (*Output) SetVerboseFlag

func (o *Output) SetVerboseFlag(b bool)

func (*Output) Success added in v0.0.16

func (o *Output) Success(m string, values ...interface{})

func (*Output) VerboseFlag

func (o *Output) VerboseFlag() bool

func (*Output) Warning added in v0.0.16

func (o *Output) Warning(m string, values ...interface{})

func (*Output) WriteOutput added in v0.0.16

func (o *Output) WriteOutput(message string, outputType string, values ...interface{})

Output receives two strings (severity and message and outputs to stdout or

Jump to

Keyboard shortcuts

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