terminal

package
v0.0.512 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLogger = &Logger{level: LevelInfo}

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Error

func Error(v ...interface{})

func Errorf

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

func Info

func Info(v ...interface{})

func Infof

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

func Warn

func Warn(v ...interface{})

func Warnf

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

Types

type LogLevel

type LogLevel int
const (
	LevelDebug LogLevel = iota
	LevelInfo
	LevelWarn
	LevelError
)

type Logger added in v0.0.245

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

func (*Logger) Debug added in v0.0.245

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

func (*Logger) Debugf added in v0.0.245

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

func (*Logger) Error added in v0.0.245

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

func (*Logger) Errorf added in v0.0.245

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

func (*Logger) GetLogLevel added in v0.0.500

func (l *Logger) GetLogLevel() LogLevel

func (*Logger) Info added in v0.0.245

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

func (*Logger) Infof added in v0.0.245

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

func (*Logger) SetLogLevel added in v0.0.245

func (l *Logger) SetLogLevel(lvl LogLevel)

func (*Logger) Warn added in v0.0.245

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

func (*Logger) Warnf added in v0.0.245

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

Jump to

Keyboard shortcuts

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