console

package
v0.0.0-...-8ae6469 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

type Console struct {
	Prompt prompter.Prompter
	// contains filtered or unexported fields
}

func Get

func Get() Console

func GetWithParams

func GetWithParams(p prompter.Prompter, level Level) Console

func (*Console) Debug

func (c *Console) Debug(msg string)

Debug logs the given message as a debug message.

func (*Console) Debugf

func (c *Console) Debugf(msg string, params ...interface{})

Debugf logs the given message as a debug message.

func (*Console) Error

func (c *Console) Error(msg string)

Error logs the given message as a error message.

func (*Console) Errorf

func (c *Console) Errorf(msg string, params ...interface{})

Errorf logs the given message as a error message.

func (*Console) Fatal

func (c *Console) Fatal(msg string)

Fatal logs the given message as a fatal message.

func (*Console) Fatalf

func (c *Console) Fatalf(msg string, params ...interface{})

Fatalf logs the given message as a fatal message.

func (*Console) Info

func (c *Console) Info(msg string)

Info logs the given message as a info message.

func (*Console) Infof

func (c *Console) Infof(msg string, params ...interface{})

Infof logs the given message as a info message.

func (*Console) SetDebugLevel

func (c *Console) SetDebugLevel()

func (*Console) Success

func (c *Console) Success(msg string)

Success logs the given message as a success message.

func (*Console) Successf

func (c *Console) Successf(msg string, params ...interface{})

Successf logs the given message as a success message.

func (*Console) WaitForEnter

func (c *Console) WaitForEnter() error

WaitForEnter expect any character in to continue

func (*Console) Warn

func (c *Console) Warn(msg string)

Warn logs the given message as a warn message.

func (*Console) Warnf

func (c *Console) Warnf(msg string, params ...interface{})

Warnf logs the given message as a warn message.

type Level

type Level uint16

Level is a 16-bit set holding the enabled log levels.

const (
	LevelDebug Level = 1 << iota
	LevelInfo
	LevelError
	LevelWarn
	LevelSuccess
	LevelFatal
)

Jump to

Keyboard shortcuts

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