log

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

func NewTestWriter

func NewTestWriter() log.Writer

func NewWriter

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

Types

type Entry

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

func (*Entry) Context

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

func (*Entry) GetLevel

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

func (*Entry) GetMessage

func (r *Entry) GetMessage() string

func (*Entry) GetTime

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

func (*Entry) Level

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

func (*Entry) Message

func (r *Entry) Message() string

func (*Entry) Time

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

type Hook

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

func (*Hook) Fire

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

func (*Hook) Levels

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

type Logrus

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

func NewApplication

func NewApplication(writer log.Writer) *Logrus

func NewLogrusApplication

func NewLogrusApplication() *Logrus

func (*Logrus) WithContext

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

type TestWriter

type TestWriter struct {
}

func (*TestWriter) Debug

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

func (*TestWriter) Debugf

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

func (*TestWriter) Error

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

func (*TestWriter) Errorf

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

func (*TestWriter) Fatal

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

func (*TestWriter) Fatalf

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

func (*TestWriter) Info

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

func (*TestWriter) Infof

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

func (*TestWriter) Panic

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

func (*TestWriter) Panicf

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

func (*TestWriter) Warning

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

func (*TestWriter) Warningf

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

type Writer

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

func (*Writer) Debug

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

func (*Writer) Debugf

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

func (*Writer) Error

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

func (*Writer) Errorf

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

func (*Writer) Fatal

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

func (*Writer) Fatalf

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

func (*Writer) Info

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

func (*Writer) Infof

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

func (*Writer) Panic

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

func (*Writer) Panicf

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

func (*Writer) Warning

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

func (*Writer) Warningf

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