log

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(s string) string

func Cyan

func Cyan(s string) string

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Gray added in v1.3.0

func Gray(s string) string

func Green

func Green(s string) string

func Info

func Info(args ...interface{})

func Infof

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

func Printf

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

func Println

func Println(args ...interface{})

func Red

func Red(s string) string

func SetColors

func SetColors(colors interface{})

func SetLevel

func SetLevel(level Level)

func SetName added in v1.1.3

func SetName(name string)

func SetOutput

func SetOutput(out io.Writer)

func StartSpinner

func StartSpinner()

func StopSpinner

func StopSpinner()

func UnsetName added in v1.1.3

func UnsetName(name string)

func Warn

func Warn(args ...interface{})

func Warnf

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

func Yellow

func Yellow(s string) string

Types

type Level

type Level uint32
const (
	ErrorLevel Level = iota
	WarnLevel
	InfoLevel
	DebugLevel
)

func ParseLevel

func ParseLevel(lvl string) (Level, error)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func New

func New() *Logger

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

func (*Logger) Errorf

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

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

func (*Logger) Infof

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

func (*Logger) IsLevelEnabled

func (l *Logger) IsLevelEnabled(level Level) bool

func (*Logger) Log

func (l *Logger) Log(level Level, args ...interface{})

func (*Logger) Logf

func (l *Logger) Logf(level Level, format string, args ...interface{})

func (*Logger) Printf

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

func (*Logger) Println

func (l *Logger) Println(args ...interface{})

func (*Logger) SetLevel

func (l *Logger) SetLevel(level Level)

func (*Logger) SetName added in v1.1.3

func (l *Logger) SetName(name string)

func (*Logger) SetOutput

func (l *Logger) SetOutput(out io.Writer)

func (*Logger) UnsetName added in v1.1.3

func (l *Logger) UnsetName(name string)

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

func (*Logger) Warnf

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

type SkipSettings added in v1.1.0

type SkipSettings int16

func (*SkipSettings) ApplySetting added in v1.1.0

func (s *SkipSettings) ApplySetting(setting string)

func (SkipSettings) SkipExecution added in v1.1.0

func (s SkipSettings) SkipExecution() bool

func (SkipSettings) SkipExecutionInfo added in v1.4.1

func (s SkipSettings) SkipExecutionInfo() bool

func (SkipSettings) SkipExecutionOutput added in v1.3.11

func (s SkipSettings) SkipExecutionOutput() bool

func (SkipSettings) SkipFailure added in v1.1.0

func (s SkipSettings) SkipFailure() bool

func (SkipSettings) SkipMeta added in v1.1.0

func (s SkipSettings) SkipMeta() bool

func (SkipSettings) SkipSkips added in v1.3.10

func (s SkipSettings) SkipSkips() bool

func (SkipSettings) SkipSuccess added in v1.1.0

func (s SkipSettings) SkipSuccess() bool

func (SkipSettings) SkipSummary added in v1.1.0

func (s SkipSettings) SkipSummary() bool

Jump to

Keyboard shortcuts

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