logger

package
v0.12.0-beta3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global core.Logger

Functions

This section is empty.

Types

type DefaultLogger added in v0.12.0

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

func NewDefaultLogger added in v0.12.0

func NewDefaultLogger(log *logrus.Logger, prefix string, loggerPool map[string]*logrus.Logger) *DefaultLogger

func (*DefaultLogger) Debug added in v0.12.0

func (l *DefaultLogger) Debug(format string, a ...interface{})

func (*DefaultLogger) Error added in v0.12.0

func (l *DefaultLogger) Error(format string, a ...interface{})

func (*DefaultLogger) Info added in v0.12.0

func (l *DefaultLogger) Info(format string, a ...interface{})

func (*DefaultLogger) IsLevelEnabled added in v0.12.0

func (l *DefaultLogger) IsLevelEnabled(level core.LogLevel) bool

func (*DefaultLogger) Log added in v0.12.0

func (l *DefaultLogger) Log(level core.LogLevel, format string, a ...interface{})

func (*DefaultLogger) Nested added in v0.12.0

func (l *DefaultLogger) Nested(name string) core.Logger

bind two writer to logger

func (*DefaultLogger) Printf added in v0.12.0

func (l *DefaultLogger) Printf(format string, a ...interface{})

func (*DefaultLogger) Warn added in v0.12.0

func (l *DefaultLogger) Warn(format string, a ...interface{})

Jump to

Keyboard shortcuts

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