logger

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: MulanPSL-2.0 Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	Debug = iota
	Info
	Warn
	Error
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Console

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

func (*Console) Debug

func (output *Console) Debug(format string, v ...interface{})

func (*Console) DebugForce

func (output *Console) DebugForce(format string, v ...interface{})

func (*Console) Error

func (output *Console) Error(format string, v ...interface{})

func (*Console) ErrorForce

func (output *Console) ErrorForce(format string, v ...interface{})

func (*Console) Info

func (output *Console) Info(format string, v ...interface{})

func (*Console) InfoForce

func (output *Console) InfoForce(format string, v ...interface{})

func (*Console) Init

func (output *Console) Init(level int, colorful bool, normal, err io.Writer)

func (*Console) Level

func (output *Console) Level() int

func (*Console) SetLevel

func (output *Console) SetLevel(level int) int

func (*Console) Warn

func (output *Console) Warn(format string, v ...interface{})

func (*Console) WarnForce

func (output *Console) WarnForce(format string, v ...interface{})

type Interface

type Interface interface {
	Level() int
	SetLevel(int) int

	Debug(format string, v ...interface{})
	Info(format string, v ...interface{})
	Warn(format string, v ...interface{})
	Error(format string, v ...interface{})

	DebugForce(format string, v ...interface{})
	InfoForce(format string, v ...interface{})
	WarnForce(format string, v ...interface{})
	ErrorForce(format string, v ...interface{})
}

type ToNull

type ToNull int

func (ToNull) Debug

func (output ToNull) Debug(string, ...interface{})

func (ToNull) DebugForce

func (output ToNull) DebugForce(string, ...interface{})

func (ToNull) Error

func (output ToNull) Error(string, ...interface{})

func (ToNull) ErrorForce

func (output ToNull) ErrorForce(string, ...interface{})

func (ToNull) Info

func (output ToNull) Info(string, ...interface{})

func (ToNull) InfoForce

func (output ToNull) InfoForce(string, ...interface{})

func (ToNull) Level

func (output ToNull) Level() int

func (*ToNull) SetLevel

func (output *ToNull) SetLevel(v int) int

func (ToNull) Warn

func (output ToNull) Warn(string, ...interface{})

func (ToNull) WarnForce

func (output ToNull) WarnForce(string, ...interface{})

Jump to

Keyboard shortcuts

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