Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogFiberClient ¶
func LogFiberClient( c *fiber.Ctx, requestURL string, requestMethod string, requestContentType string, requestHeader map[string]interface{}, requestBody []byte, responseHeader map[string]interface{}, responseBody []byte, responseStatus int, requestTime time.Time, responseLatency time.Duration, )
LogFiberClient logs a custom client request and response for Fiber.
func LogGinClient ¶ added in v1.0.2
func LogGinClient( c *gin.Context, requestURL string, requestMethod string, requestContentType string, requestHeader map[string]interface{}, requestBody []byte, responseHeader map[string]interface{}, responseBody []byte, responseStatus int, requestTime time.Time, responseLatency time.Duration, )
LogGinClient logs a custom client request and response for Gin.
func NewFiber ¶
func NewFiber(config fiber.Config) fiber.Handler
NewFiber creates a new Fiber middleware that logs requests and responses.
func NewGin ¶ added in v1.0.2
func NewGin() gin.HandlerFunc
NewGin creates a new Gin middleware that logs requests and responses.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
pkg
|
|
constant/envkey
Package envkey defines environment variable keys used for configuring the application's connection to ElasticSearch.
|
Package envkey defines environment variable keys used for configuring the application's connection to ElasticSearch. |
constant/generalkey
Package generalkey defines common keys used within the application's context for logging and request handling.
|
Package generalkey defines common keys used within the application's context for logging and request handling. |
infrastructure/logger
Package logger provides a logging utility that integrates with ElasticSearch and uses the logrus package for structured logging.
|
Package logger provides a logging utility that integrates with ElasticSearch and uses the logrus package for structured logging. |
Click to show internal directories.
Click to hide internal directories.