aelog

package
v0.0.0-...-88c3b2e Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_PRINT = 4
	LOG_DEBUG = 1
	LOG_INFO  = 2
	LOG_WARN  = 3
)

Variables

View Source
var Prefixes = map[int]string{
	LOG_PRINT: "",
	LOG_DEBUG: "[DEBUG] ",
	LOG_INFO:  "[INFO] ",
	LOG_WARN:  "[WARN] ",
}

Functions

func Debug

func Debug(v ...interface{})

func Debugf

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

func Debugln

func Debugln(v ...interface{})

func Fatal

func Fatal(v ...interface{})

func Info

func Info(v ...interface{})

func Infof

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

func Infoln

func Infoln(v ...interface{})

func InitDefault

func InitDefault(level int)

func Warn

func Warn(v ...interface{})

func Warnf

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

func Warnln

func Warnln(v ...interface{})

Types

type AntLog

type AntLog struct {
	*log.Logger
	// contains filtered or unexported fields
}
var DefaultLogger *AntLog

func New

func New(filename string, level int) (*AntLog, error)

func (*AntLog) Debug

func (a *AntLog) Debug(v ...interface{})

func (*AntLog) Debugf

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

func (*AntLog) Debugln

func (a *AntLog) Debugln(v ...interface{})

func (*AntLog) Fatal

func (a *AntLog) Fatal(v ...interface{})

func (*AntLog) Info

func (a *AntLog) Info(v ...interface{})

func (*AntLog) Infof

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

func (*AntLog) Infoln

func (a *AntLog) Infoln(v ...interface{})

func (*AntLog) Print

func (a *AntLog) Print(level int, v ...interface{})

func (*AntLog) Printf

func (a *AntLog) Printf(level int, format string, v ...interface{})

func (*AntLog) Println

func (a *AntLog) Println(level int, v ...interface{})

func (*AntLog) Warn

func (a *AntLog) Warn(v ...interface{})

func (*AntLog) Warnf

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

func (*AntLog) Warnln

func (a *AntLog) Warnln(v ...interface{})

Jump to

Keyboard shortcuts

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