logging

package
v1.0.20 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewWrapper

func NewWrapper(opts ...Option) broker.Wrapper

NewWrapper returns a logging wrapper for client

Types

type Option

type Option func(options *options)

Option is option.

func WithAddr

func WithAddr(addr string) Option

WithAddr with address.

func WithQueue

func WithQueue(queue string) Option

WithQueue with queue.

func WithRequest

func WithRequest(v bool) Option

WithRequest with request.

func WithResponse

func WithResponse(v bool) Option

WithResponse with response.

func WithSlowThreshold

func WithSlowThreshold(threshold time.Duration) Option

WithSlowThreshold with slow threshold.

Jump to

Keyboard shortcuts

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