Documentation ¶
Index ¶
- Variables
- func Debugf(template string, args ...interface{})
- func Error(args ...interface{})
- func Errorf(template string, args ...interface{})
- func Fatal(args ...interface{})
- func Fatalf(template string, args ...interface{})
- func Info(args ...interface{})
- func Infof(template string, args ...interface{})
- func SetCoreLogger(log *zap.SugaredLogger)
- func SetDownloadLogger(log *zap.Logger)
- func SetGcLogger(log *zap.SugaredLogger)
- func SetGrpcLogger(log *zap.SugaredLogger)
- func SetJobLogger(log *zap.SugaredLogger)
- func SetKeepAliveLogger(log *zap.SugaredLogger)
- func SetStatPeerLogger(log *zap.Logger)
- func SetStatSeedLogger(log *zap.Logger)
- func Warn(args ...interface{})
- func Warnf(template string, args ...interface{})
- type SugaredLoggerOnWith
- func (log *SugaredLoggerOnWith) Debug(args ...interface{})
- func (log *SugaredLoggerOnWith) Debugf(template string, args ...interface{})
- func (log *SugaredLoggerOnWith) Error(args ...interface{})
- func (log *SugaredLoggerOnWith) Errorf(template string, args ...interface{})
- func (log *SugaredLoggerOnWith) Info(args ...interface{})
- func (log *SugaredLoggerOnWith) Infof(template string, args ...interface{})
- func (log *SugaredLoggerOnWith) Warn(args ...interface{})
- func (log *SugaredLoggerOnWith) Warnf(template string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CoreLogger *zap.SugaredLogger GrpcLogger *zap.SugaredLogger GcLogger *zap.SugaredLogger JobLogger *zap.SugaredLogger KeepAliveLogger *zap.SugaredLogger StatPeerLogger *zap.Logger StatSeedLogger *zap.Logger DownloaderLogger *zap.Logger )
Functions ¶
func SetCoreLogger ¶
func SetCoreLogger(log *zap.SugaredLogger)
func SetDownloadLogger ¶
func SetGcLogger ¶
func SetGcLogger(log *zap.SugaredLogger)
func SetGrpcLogger ¶
func SetGrpcLogger(log *zap.SugaredLogger)
func SetJobLogger ¶ added in v2.0.1
func SetJobLogger(log *zap.SugaredLogger)
func SetKeepAliveLogger ¶
func SetKeepAliveLogger(log *zap.SugaredLogger)
func SetStatPeerLogger ¶
func SetStatSeedLogger ¶
Types ¶
type SugaredLoggerOnWith ¶
type SugaredLoggerOnWith struct {
// contains filtered or unexported fields
}
func With ¶
func With(args ...interface{}) *SugaredLoggerOnWith
func WithTaskAndPeerID ¶
func WithTaskAndPeerID(taskID, peerID string) *SugaredLoggerOnWith
func WithTaskID ¶
func WithTaskID(taskID string) *SugaredLoggerOnWith
func WithTaskIDAndURL ¶ added in v2.0.1
func WithTaskIDAndURL(taskID, url string) *SugaredLoggerOnWith
func (*SugaredLoggerOnWith) Debug ¶
func (log *SugaredLoggerOnWith) Debug(args ...interface{})
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{})
Click to show internal directories.
Click to hide internal directories.