extend

package
v0.0.0-...-bbc86cb Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSessionLog

func NewSessionLog(session *neonx.Session) logger.Logger

func ReplaceGrpcLogger

func ReplaceGrpcLogger()

func SetGrpcLog

func SetGrpcLog(log logger.Logger)

Types

type GrpcExtendLog

type GrpcExtendLog interface {
	Infoln(args ...interface{})
	Debugln(args ...interface{})
	Errorln(args ...interface{})
	Fatalln(args ...interface{})
	Warning(args ...interface{})
	Warnln(args ...interface{})
	V(l int) bool
}

type GrpcLog

type GrpcLog struct {
	logger.Logger
	GrpcExtendLog
}

func DefGrpLog

func DefGrpLog() *GrpcLog

func (*GrpcLog) Debugln

func (log *GrpcLog) Debugln(args ...interface{})

func (*GrpcLog) Errorln

func (log *GrpcLog) Errorln(args ...interface{})

func (*GrpcLog) Fatalln

func (log *GrpcLog) Fatalln(args ...interface{})

func (*GrpcLog) Infoln

func (log *GrpcLog) Infoln(args ...interface{})

func (*GrpcLog) V

func (log *GrpcLog) V(l int) bool

func (*GrpcLog) Warning

func (log *GrpcLog) Warning(args ...interface{})

func (*GrpcLog) Warningf

func (log *GrpcLog) Warningf(format string, args ...interface{})

func (*GrpcLog) Warningln

func (log *GrpcLog) Warningln(args ...interface{})

func (*GrpcLog) Warnln

func (log *GrpcLog) Warnln(args ...interface{})

type SimpleFormat

type SimpleFormat struct{}

func (*SimpleFormat) Format

func (sf *SimpleFormat) Format(entry *logrus.Entry) ([]byte, error)

type SimpleLog

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

func NewSimpleLog

func NewSimpleLog() *SimpleLog

func (*SimpleLog) Debug

func (log *SimpleLog) Debug(args ...interface{})

func (*SimpleLog) Debugf

func (log *SimpleLog) Debugf(format string, args ...interface{})

func (*SimpleLog) Error

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

func (*SimpleLog) Errorf

func (log *SimpleLog) Errorf(format string, args ...interface{})

func (*SimpleLog) Fatal

func (log *SimpleLog) Fatal(args ...interface{})

func (*SimpleLog) Fatalf

func (log *SimpleLog) Fatalf(format string, args ...interface{})

func (*SimpleLog) Info

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

func (*SimpleLog) Infof

func (log *SimpleLog) Infof(format string, args ...interface{})

func (*SimpleLog) Panic

func (log *SimpleLog) Panic(args ...interface{})

func (*SimpleLog) Panicf

func (log *SimpleLog) Panicf(format string, args ...interface{})

func (*SimpleLog) SetLevel

func (log *SimpleLog) SetLevel(level logger.Level) bool

func (*SimpleLog) Warn

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

func (*SimpleLog) Warnf

func (log *SimpleLog) Warnf(format string, args ...interface{})

func (*SimpleLog) With

func (log *SimpleLog) With(fields ...interface{}) logger.Logger

Jump to

Keyboard shortcuts

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