pub fn setup_logging() -> Result<(), Box<dyn Error>>
Sets up logging by reading configuration from environment variables.