logging

package
v0.0.0-...-7f3aa20 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() *logrus.Logger

InitLogger returns a configured logger

func LogRequestHandler

func LogRequestHandler(l *logrus.Entry, h http.Handler) http.Handler

LogRequestHandler is logging handler

func RequestGetRemoteAddress

func RequestGetRemoteAddress(r *http.Request) string

requestGetRemoteAddress returns ip address of the client making the request, taking into account http proxies

Types

type HTTPReqInfo

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

HTTPReqInfo is HTTP request info

Jump to

Keyboard shortcuts

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