log

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: MIT Imports: 10 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogrus added in v1.0.0

func NewLogrus(logger *logrus.Logger, writer log.Writer) log.Log

func NewTestWriter added in v1.2.3

func NewTestWriter() log.Writer

func NewWriter added in v1.2.3

func NewWriter(instance *logrus.Entry) log.Writer

Types

type Application

type Application struct {
}

func (*Application) Init

func (app *Application) Init() log.Log

type Entry added in v1.0.1

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

func (*Entry) Context added in v1.2.3

func (r *Entry) Context() context.Context

func (*Entry) GetLevel added in v1.0.1

func (r *Entry) GetLevel() log.Level

DEPRECATED: use Level()

func (*Entry) GetMessage added in v1.0.1

func (r *Entry) GetMessage() string

DEPRECATED: use Level()

func (*Entry) GetTime added in v1.0.1

func (r *Entry) GetTime() time.Time

DEPRECATED: use Level()

func (*Entry) Level added in v1.2.3

func (r *Entry) Level() log.Level

func (*Entry) Message added in v1.2.3

func (r *Entry) Message() string

func (*Entry) Time added in v1.2.3

func (r *Entry) Time() time.Time

type Hook added in v1.0.0

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

func (*Hook) Fire added in v1.0.0

func (h *Hook) Fire(entry *logrus.Entry) error

func (*Hook) Levels added in v1.0.0

func (h *Hook) Levels() []logrus.Level

type Logrus added in v1.0.0

type Logrus struct {
	log.Writer
	// contains filtered or unexported fields
}

func (*Logrus) WithContext added in v1.2.3

func (r *Logrus) WithContext(ctx context.Context) log.Writer

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (log *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (log *ServiceProvider) Register()

type TestWriter added in v1.2.3

type TestWriter struct {
}

func (*TestWriter) Debug added in v1.2.3

func (r *TestWriter) Debug(args ...interface{})

func (*TestWriter) Debugf added in v1.2.3

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

func (*TestWriter) Error added in v1.2.3

func (r *TestWriter) Error(args ...interface{})

func (*TestWriter) Errorf added in v1.2.3

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

func (*TestWriter) Fatal added in v1.2.3

func (r *TestWriter) Fatal(args ...interface{})

func (*TestWriter) Fatalf added in v1.2.3

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

func (*TestWriter) Info added in v1.2.3

func (r *TestWriter) Info(args ...interface{})

func (*TestWriter) Infof added in v1.2.3

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

func (*TestWriter) Panic added in v1.2.3

func (r *TestWriter) Panic(args ...interface{})

func (*TestWriter) Panicf added in v1.2.3

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

func (*TestWriter) Warning added in v1.2.3

func (r *TestWriter) Warning(args ...interface{})

func (*TestWriter) Warningf added in v1.2.3

func (r *TestWriter) Warningf(format string, args ...interface{})

type Writer added in v1.2.3

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

func (*Writer) Debug added in v1.2.3

func (r *Writer) Debug(args ...interface{})

func (*Writer) Debugf added in v1.2.3

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

func (*Writer) Error added in v1.2.3

func (r *Writer) Error(args ...interface{})

func (*Writer) Errorf added in v1.2.3

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

func (*Writer) Fatal added in v1.2.3

func (r *Writer) Fatal(args ...interface{})

func (*Writer) Fatalf added in v1.2.3

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

func (*Writer) Info added in v1.2.3

func (r *Writer) Info(args ...interface{})

func (*Writer) Infof added in v1.2.3

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

func (*Writer) Panic added in v1.2.3

func (r *Writer) Panic(args ...interface{})

func (*Writer) Panicf added in v1.2.3

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

func (*Writer) Warning added in v1.2.3

func (r *Writer) Warning(args ...interface{})

func (*Writer) Warningf added in v1.2.3

func (r *Writer) Warningf(format string, args ...interface{})

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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