Context
PR #2353 extracted BBR command-line arguments to structured Options following the EPP pattern. Logging configuration code is now duplicated between EPP and BBR.
Task
Extract common logging configuration from EPP and BBR into a shared package to avoid duplication and promote reusability across components.
Scope
- Identify duplicated logging code in
pkg/epp/server/options.go and pkg/bbr/server/options.go
- Create shared logging options package at
/pkg/common/observability/logging/options.go
- Refactor EPP and BBR to use the shared implementation
- Maintain backward compatibility with existing CLI flags
Benefits
- Single source of truth for logging configuration
- Consistent logging behavior across components
- Easier maintenance and future reusability
Context
PR #2353 extracted BBR command-line arguments to structured
Optionsfollowing the EPP pattern. Logging configuration code is now duplicated between EPP and BBR.Task
Extract common logging configuration from EPP and BBR into a shared package to avoid duplication and promote reusability across components.
Scope
pkg/epp/server/options.goandpkg/bbr/server/options.go/pkg/common/observability/logging/options.goBenefits