logger

package
v0.0.0-...-0473bba Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultLogMan = &LogMan{
		loggers: make(map[string]*logs.BeeLogger),
	}

	// 错误级别的文件后缀
	LevelExt = map[int]string{
		logs.LevelEmergency:     "emergency",
		logs.LevelAlert:         "alert",
		logs.LevelCritical:      "critical",
		logs.LevelError:         "error",
		logs.LevelWarning:       "warning",
		logs.LevelNotice:        "notice",
		logs.LevelInformational: "info",
		logs.LevelDebug:         "debug",
	}
)

Functions

func Debugf

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

func Errorf

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

func Infof

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

func R

func R(category ...string) *logManR

Types

type LogMan

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

func (*LogMan) Debugf

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

func (*LogMan) Errorf

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

func (*LogMan) Infof

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

func (*LogMan) R

func (t *LogMan) R(category ...string) *logManR

Jump to

Keyboard shortcuts

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