httplogs

package
v1.9.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPAccessLoggingWrapper

func HTTPAccessLoggingWrapper(h http.Handler) http.Handler

HTTPAccessLoggingWrapper is wrapper to enable access logs

func InitLogging

func InitLogging(serviceName string, options ...Options)

InitLogging acts as a constructor to initialize the logging service and initailize the struct

Types

type GlobalParameters

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

GlobalParameters is the class used to store global variables

type Options

type Options func(lb *GlobalParameters)

Options sets a variable of GlobalParameters

func SetConsulIP

func SetConsulIP(consultIP string) Options

SetConsulIP (mandatory) default value is localhost, thus service has to change the consul ip based on environment

func SetLogger

func SetLogger(customLogger *gologger.CustomLogger) Options

SetLogger (mandatory) parameter in order to configure logger

Jump to

Keyboard shortcuts

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