logging

package
v0.0.0-...-c2add7f Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package logging implements basic logging routine.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestsLogger

func RequestsLogger(next http.Handler) http.Handler

RequestsLogger is net/http middleware which logs incoming requests and responses.

func Setup

func Setup(debug bool)

Setup initializes new logger to be used across packages of the project.

func UnaryRequestsInterceptor

func UnaryRequestsInterceptor(
	ctx context.Context,
	req any,
	info *grpc.UnaryServerInfo,
	handler grpc.UnaryHandler,
) (any, error)

UnaryRequestsInterceptor is grpc unary interceptor which logs incoming requests and responses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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