package
0.0.0-20250128035417-84048cf2426f
Repository: https://github.com/jonesrussell/goforms.git
Documentation: pkg.go.dev
# README
Logging Package
This package provides unified logging functionality using zap.
Responsibilities
- Structured logging interface
- Log level management
- Field-based logging
- Fx event logging
- Testing utilities
Key Components
Logger
: Main logging interfaceFxEventLogger
: Uber Fx event loggingLoggerFactory
: Logger creation and configuration- Field helpers (String, Int, Bool, Error, etc.)
Usage
logger := logging.NewLogger(debug, appName)
logger.Info("message", logging.String("key", "value"))