terminal

package
v0.0.553 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 4 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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