Documentation ¶
Index ¶
- Constants
- func CreateLogger(level LogLevel)
- func GetCallerFunctionName() string
- func NewSpinner() *yacspin.Spinner
- func Sync()
- type CompletionStatus
- type LogLevel
- type Logger
- func (logger *Logger) Debug(args ...interface{})
- func (logger *Logger) DebugFunc(log func(), mustExecute func())
- func (logger *Logger) Debugf(template string, args ...interface{})
- func (logger *Logger) Fail(args ...interface{})
- func (logger *Logger) Failf(template string, args ...interface{})
- func (logger *Logger) Info(args ...interface{})
- func (logger *Logger) Infof(template string, args ...interface{})
- func (logger *Logger) Succeed()
- func (logger *Logger) Succeedf(template string, args ...interface{})
- type Spinner
Constants ¶
View Source
const ( NormalLogLevel = 1 DetailedLogLevel = 2 DebugLogLevel = 3 )
View Source
const ( SucceedCompletionStatus = "[succeed]" FailedCompletionStatus = "[failed]" )
View Source
const ExitFailureStatus = 3
Variables ¶
This section is empty.
Functions ¶
func CreateLogger ¶
func CreateLogger(level LogLevel)
func GetCallerFunctionName ¶
func GetCallerFunctionName() string
func NewSpinner ¶
Types ¶
type CompletionStatus ¶
type CompletionStatus string
type Logger ¶
type Logger struct { LogDone func() // contains filtered or unexported fields }
func NewTaskLogger ¶
func NewTaskLogger() *Logger
Click to show internal directories.
Click to hide internal directories.