log

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogrus

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

func NewWriter added in v1.0.17

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

Types

type Application

type Application struct {
}

func (*Application) Init

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

type Entry

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

func (*Entry) Context added in v1.0.17

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

func (*Entry) GetLevel

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

DEPRECATED: use Level()

func (*Entry) GetMessage

func (r *Entry) GetMessage() string

DEPRECATED: use Level()

func (*Entry) GetTime

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

DEPRECATED: use Level()

func (*Entry) Level added in v1.0.17

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

func (*Entry) Message added in v1.0.17

func (r *Entry) Message() string

func (*Entry) Time added in v1.0.17

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 (*Logrus) WithContext added in v1.0.17

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 Writer added in v1.0.17

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

func (*Writer) Debug added in v1.0.17

func (r *Writer) Debug(args ...any)

func (*Writer) Debugf added in v1.0.17

func (r *Writer) Debugf(format string, args ...any)

func (*Writer) Error added in v1.0.17

func (r *Writer) Error(args ...any)

func (*Writer) Errorf added in v1.0.17

func (r *Writer) Errorf(format string, args ...any)

func (*Writer) Fatal added in v1.0.17

func (r *Writer) Fatal(args ...any)

func (*Writer) Fatalf added in v1.0.17

func (r *Writer) Fatalf(format string, args ...any)

func (*Writer) Info added in v1.0.17

func (r *Writer) Info(args ...any)

func (*Writer) Infof added in v1.0.17

func (r *Writer) Infof(format string, args ...any)

func (*Writer) Panic added in v1.0.17

func (r *Writer) Panic(args ...any)

func (*Writer) Panicf added in v1.0.17

func (r *Writer) Panicf(format string, args ...any)

func (*Writer) Warning added in v1.0.17

func (r *Writer) Warning(args ...any)

func (*Writer) Warningf added in v1.0.17

func (r *Writer) Warningf(format string, args ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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