logger

package
v0.1.0-beta-3 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreLogger       *zap.SugaredLogger
	GrpcLogger       *zap.SugaredLogger
	GcLogger         *zap.SugaredLogger
	KeepAliveLogger  *zap.SugaredLogger
	StatPeerLogger   *zap.Logger
	StatSeedLogger   *zap.Logger
	DownloaderLogger *zap.Logger
)

Functions

func Debugf

func Debugf(template string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(template string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(template string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(template string, args ...interface{})

func SetCoreLogger

func SetCoreLogger(log *zap.SugaredLogger)

func SetDownloadLogger

func SetDownloadLogger(log *zap.Logger)

func SetGcLogger

func SetGcLogger(log *zap.SugaredLogger)

func SetGrpcLogger

func SetGrpcLogger(log *zap.SugaredLogger)

func SetKeepAliveLogger

func SetKeepAliveLogger(log *zap.SugaredLogger)

func SetStatPeerLogger

func SetStatPeerLogger(log *zap.Logger)

func SetStatSeedLogger

func SetStatSeedLogger(log *zap.Logger)

func Warnf

func Warnf(template string, args ...interface{})

Types

type SugaredLoggerOnWith

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

func With

func With(args ...interface{}) *SugaredLoggerOnWith

func WithPeerID

func WithPeerID(peerID string) *SugaredLoggerOnWith

func WithTaskID

func WithTaskID(taskID string) *SugaredLoggerOnWith

func (*SugaredLoggerOnWith) Debugf

func (log *SugaredLoggerOnWith) Debugf(template string, args ...interface{})

func (*SugaredLoggerOnWith) Error

func (log *SugaredLoggerOnWith) Error(args ...interface{})

func (*SugaredLoggerOnWith) Errorf

func (log *SugaredLoggerOnWith) Errorf(template string, args ...interface{})

func (*SugaredLoggerOnWith) Info

func (log *SugaredLoggerOnWith) Info(args ...interface{})

func (*SugaredLoggerOnWith) Infof

func (log *SugaredLoggerOnWith) Infof(template string, args ...interface{})

func (*SugaredLoggerOnWith) Warn

func (log *SugaredLoggerOnWith) Warn(args ...interface{})

func (*SugaredLoggerOnWith) Warnf

func (log *SugaredLoggerOnWith) Warnf(template string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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