logger

package
v0.0.0-...-41aba7b Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(args ...interface{})

func Debugf

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

func Error

func Error(args ...interface{})

func Errorf

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

func Fatal

func Fatal(args ...interface{})

func Fatalf

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

func Info

func Info(args ...interface{})

func Infof

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

func Panic

func Panic(args ...interface{})

func Panicf

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

func SetLevel

func SetLevel(level Level) bool

func SetLogger

func SetLogger(newlogger Logger)

func Warn

func Warn(args ...interface{})

func Warnf

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

Types

type BaseLog

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

func NewBaseLog

func NewBaseLog(log *logrus.Logger) *BaseLog

func (*BaseLog) Debug

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

func (*BaseLog) Debugf

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

func (*BaseLog) Error

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

func (*BaseLog) Errorf

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

func (*BaseLog) Fatal

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

func (*BaseLog) Fatalf

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

func (*BaseLog) Info

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

func (*BaseLog) Infof

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

func (*BaseLog) Panic

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

func (*BaseLog) Panicf

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

func (*BaseLog) SetLevel

func (log *BaseLog) SetLevel(level Level) bool

func (*BaseLog) Warn

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

func (*BaseLog) Warnf

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

func (*BaseLog) With

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

type Level

type Level = logrus.Level
const (
	PanicLevel Level = iota
	FatalLevel
	ErrorLevel
	WarnLevel
	InfoLevel
	DebugLevel
)

type Logger

type Logger interface {
	Debug(args ...interface{})
	Debugf(format string, args ...interface{})
	Info(args ...interface{})
	Infof(format string, args ...interface{})
	Warn(args ...interface{})
	Warnf(format string, args ...interface{})
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Panic(args ...interface{})
	Panicf(format string, args ...interface{})
	With(fields ...interface{}) Logger
	SetLevel(level Level) bool
}

func DefLogger

func DefLogger() Logger

func With

func With(fields ...interface{}) Logger

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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