logger

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 4 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct{}

func (*DefaultLogger) Error

func (d *DefaultLogger) Error(args ...any)

func (*DefaultLogger) ErrorCtx added in v1.7.0

func (d *DefaultLogger) ErrorCtx(ctx context.Context, args ...any)

func (*DefaultLogger) Errorf

func (d *DefaultLogger) Errorf(format string, args ...any)

func (*DefaultLogger) Info

func (d *DefaultLogger) Info(args ...any)

func (*DefaultLogger) InfoCtx added in v1.7.0

func (d *DefaultLogger) InfoCtx(ctx context.Context, args ...any)

func (*DefaultLogger) Infof

func (d *DefaultLogger) Infof(format string, args ...any)

func (*DefaultLogger) Warning

func (d *DefaultLogger) Warning(args ...any)

func (*DefaultLogger) WarningCtx added in v1.7.0

func (d *DefaultLogger) WarningCtx(ctx context.Context, args ...any)

func (*DefaultLogger) Warningf

func (d *DefaultLogger) Warningf(format string, args ...any)

type Logger

type Logger interface {
	Info(args ...any)
	Infof(format string, args ...any)
	InfoCtx(ctx context.Context, args ...any)

	Warning(args ...any)
	Warningf(format string, args ...any)
	WarningCtx(ctx context.Context, args ...any)

	Error(args ...any)
	Errorf(format string, args ...any)
	ErrorCtx(ctx context.Context, args ...any)
}

type Module

type Module struct {
	Logger
}

func (*Module) Init

func (m *Module) Init(c *service.Config)

Jump to

Keyboard shortcuts

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