logging

package
v0.20.11 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccessLogger

func GetAccessLogger() *slog.Logger

func GetLogger

func GetLogger() *slog.Logger

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.

Jump to

Keyboard shortcuts

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