logger

package
v0.0.0-...-4334ecd Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DragonboatLoggerFactory

func DragonboatLoggerFactory(pkgName string) logger.ILogger

func L

func L(pkgName string) *zap.Logger

L returns zap logger

func S

func S(pkgName string) *zap.SugaredLogger

S returns zap sugared logger

Types

type Factory

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

func GetLoggerFactory

func GetLoggerFactory() *Factory

func (*Factory) ChangeLogLevel

func (l *Factory) ChangeLogLevel(level string)

func (*Factory) GetZapLogger

func (l *Factory) GetZapLogger() *zap.Logger

func (*Factory) L

func (l *Factory) L(pkgName string) *zap.Logger

func (*Factory) S

func (l *Factory) S(pkgName string) *zap.SugaredLogger

func (*Factory) SetupZapLogger

func (l *Factory) SetupZapLogger(newLogger *zap.Logger)

type SugaredLogger

type SugaredLogger struct {
	*zap.SugaredLogger
}

func CS

func CS(pkgName string) *SugaredLogger

func (*SugaredLogger) SetLevel

func (l *SugaredLogger) SetLevel(_ logger.LogLevel)

func (*SugaredLogger) Warningf

func (l *SugaredLogger) Warningf(format string, args ...interface{})

Jump to

Keyboard shortcuts

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