Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccessLogger ¶
func GinLogger ¶ added in v0.20.11
func GinLogger(logger *slog.Logger, skipPaths []string) gin.HandlerFunc
GinLogger returns a middleware that logs HTTP requests with slog.
func GinRecovery ¶ added in v0.20.11
func GinRecovery(logger *slog.Logger, includeStack bool) gin.HandlerFunc
GinRecovery recovers from panics and logs them.
func Setup ¶
func Setup(cfg *config.LoggingConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.