logger

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// UserNameKey is the key for the username in the context
	UserNameKey = contextKeyUserName("username")
)

Variables

View Source
var (
	// Log variable is a globally accessible variable which will be initialized when the InitializeZapCustomLogger function is executed successfully.
	Log *zap.Logger
)

Functions

func GetGinLogger

func GetGinLogger(logUsernameParam bool) gin.HandlerFunc

func InitLogger added in v1.1.1

func InitLogger()

InitLogger initializes the logger with the given configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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