log

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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

DEPRECATED: use Level()

func (*Entry) GetMessage

func (r *Entry) GetMessage() string

DEPRECATED: use Message()

func (*Entry) GetTime

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

DEPRECATED: use 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 LogManager

type LogManager struct {
	manager.Manager[*Logger]
}

func NewChannelManager

func NewChannelManager() *LogManager

func (*LogManager) Channel

func (m *LogManager) Channel(channelName string) *Logger

func (*LogManager) DefaultDriverName

func (m *LogManager) DefaultDriverName() string

type Logger

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

func NewLogger

func NewLogger(ctx context.Context, channelName string) (*Logger, error)

func WrapLogger

func WrapLogger(writer log.Writer) *Logger

func (*Logger) Channel

func (r *Logger) Channel(name string) log.ILog

func (*Logger) WithContext

func (r *Logger) 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

type TestWriter struct {
}

func (*TestWriter) Debug

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

func (*TestWriter) Debugf

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

func (*TestWriter) Error

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

func (*TestWriter) Errorf

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

func (*TestWriter) Fatal

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

func (*TestWriter) Fatalf

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

func (*TestWriter) Info

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

func (*TestWriter) Infof

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

func (*TestWriter) Panic

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

func (*TestWriter) Panicf

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

func (*TestWriter) Warning

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

func (*TestWriter) Warningf

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

type Writer

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

func (*Writer) Debug

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

func (*Writer) Debugf

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

func (*Writer) Error

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

func (*Writer) Errorf

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

func (*Writer) Fatal

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

func (*Writer) Fatalf

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

func (*Writer) Info

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

func (*Writer) Infof

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

func (*Writer) Panic

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

func (*Writer) Panicf

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

func (*Writer) Warning

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

func (*Writer) Warningf

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