log

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bold

func Bold(arg interface{}) aurora.Value

func Cyan

func Cyan(arg interface{}) aurora.Value

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 Green

func Green(arg interface{}) aurora.Value

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(arg interface{}) aurora.Value

func SetColors

func SetColors(enable bool)

func SetLevel

func SetLevel(level Level)

func SetOutput

func SetOutput(out io.Writer)

func StartSpinner

func StartSpinner()

func StopSpinner

func StopSpinner()

func Warn

func Warn(args ...interface{})

func Warnf

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

func Yellow

func Yellow(arg interface{}) aurora.Value

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) SetOutput

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

func (*Logger) Warn

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

func (*Logger) Warnf

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

Jump to

Keyboard shortcuts

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