Context
As discussed in #1675, we have identified several utility functions in the log-ingestor component that will likely be needed across multiple Rust components:
read_config_and_credentials: Loads configuration from YAML files and credentials from environment variables
set_up_logging: Sets up logging with hourly-rotating file appenders
shutdown_signal: Handles graceful shutdown on SIGTERM or Ctrl-C
Proposal
Move these utilities to the clp-rust-utils crate to promote code reuse and consistency across Rust components.
References
Context
As discussed in #1675, we have identified several utility functions in the log-ingestor component that will likely be needed across multiple Rust components:
read_config_and_credentials: Loads configuration from YAML files and credentials from environment variablesset_up_logging: Sets up logging with hourly-rotating file appendersshutdown_signal: Handles graceful shutdown on SIGTERM or Ctrl-CProposal
Move these utilities to the
clp-rust-utilscrate to promote code reuse and consistency across Rust components.References