Documentation ¶
Overview ¶
Package logging provides centralized logging functionality for the application. Version: 1.0.0
Index ¶
- func LoggerMiddleware(logger *zap.Logger) func(next http.Handler) http.Handler
- func NewLogger(component string) (*zap.Logger, error)
- func RecoveryMiddleware(logger *zap.Logger) func(next http.Handler) http.Handler
- func Sync() error
- func WithContext(logger *zap.Logger, fields map[string]interface{}) *zap.Logger
- type LoggerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggerMiddleware ¶
LoggerMiddleware provides a middleware for logging HTTP requests
func RecoveryMiddleware ¶
RecoveryMiddleware provides a middleware for recovering from panics
Types ¶
Click to show internal directories.
Click to hide internal directories.