logger

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(cfg Config) rabbitmq.ControllerFunc

Types

type Config

type Config struct {
	Logger    Logger
	Formatter func(params *LogParams) string
}

type LogParams

type LogParams struct {
	ExchangeName string
	RoutingKey   string
	Acked        bool
}

type Logger

type Logger interface {
	InfoStr(ctx context.Context, message string)
	ErrorStr(ctx context.Context, message string)
	TraceStr(ctx context.Context, message string)
}

Jump to

Keyboard shortcuts

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