logs

package
v1.0.16 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseEndpointLogger

func BaseEndpointLogger(logger log.Logger) endpoint.Middleware

BaseEndpointLogger returns an endpoint middleware that logs the duration of each invocation, and the resulting error, if any.

func ZapEndpointLogger

func ZapEndpointLogger(kv *KV) endpoint.Middleware

ZapEndpointLogger - configures a endpoint logger based on zap logger

Types

type KV

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

KV - Convenient key-value pairs to pass to loggers

func (*KV) With

func (kv *KV) With(key string, val interface{}) *KV

Jump to

Keyboard shortcuts

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