main
v0.7.1
rivaas.dev/logging/examples/02-production
Documentation
pkg.go.dev ↗Package main demonstrates production-ready logging configuration.
This example covers:
- JSON handler for structured, machine-readable logs
- Service metadata (name, version, environment)
- Configuration validation
- Batch logging for high-throughput scenarios
- Sampling to reduce log volume