levellogger

package
v0.3.7-HA.1.9.8 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOG_ERR int32 = iota
	LOG_WARN
	LOG_INFO
	LOG_DEBUG
	LOG_DETAIL
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GLogger

type GLogger struct {
}

func (*GLogger) Output

func (self *GLogger) Output(maxdepth int, s string) error

func (*GLogger) OutputErr

func (self *GLogger) OutputErr(maxdepth int, s string) error

func (*GLogger) OutputWarning

func (self *GLogger) OutputWarning(maxdepth int, s string) error

type LevelLogger

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

func NewLevelLogger

func NewLevelLogger(level int32, l Logger) *LevelLogger

func (*LevelLogger) Debugf

func (self *LevelLogger) Debugf(f string, args ...interface{})

func (*LevelLogger) Errorf

func (self *LevelLogger) Errorf(f string, args ...interface{})

func (*LevelLogger) Infof

func (self *LevelLogger) Infof(f string, args ...interface{})

func (*LevelLogger) Level

func (self *LevelLogger) Level() int32

func (*LevelLogger) LogDebugf

func (self *LevelLogger) LogDebugf(f string, args ...interface{})

func (*LevelLogger) LogErrorf

func (self *LevelLogger) LogErrorf(f string, args ...interface{})

func (*LevelLogger) LogWarningf

func (self *LevelLogger) LogWarningf(f string, args ...interface{})

func (*LevelLogger) Logf

func (self *LevelLogger) Logf(f string, args ...interface{})

func (*LevelLogger) SetLevel

func (self *LevelLogger) SetLevel(l int32)

func (*LevelLogger) Warningf

func (self *LevelLogger) Warningf(f string, args ...interface{})

func (*LevelLogger) Warningln

func (self *LevelLogger) Warningln(f string)

type Logger

type Logger interface {
	Output(maxdepth int, s string) error
	OutputErr(maxdepth int, s string) error
	OutputWarning(maxdepth int, s string) error
}

type SimpleLogger

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

func NewSimpleLog

func NewSimpleLog() *SimpleLogger

func (*SimpleLogger) Output

func (self *SimpleLogger) Output(maxdepth int, s string) error

func (*SimpleLogger) OutputErr

func (self *SimpleLogger) OutputErr(maxdepth int, s string) error

func (*SimpleLogger) OutputWarning

func (self *SimpleLogger) OutputWarning(maxdepth int, s string) error

Jump to

Keyboard shortcuts

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