Refactor gather_read_tags function to accept a logger parameter and replace print statements with structured logging for improved traceability.
Refactor gather_read_tags function to accept a logger parameter and replace print statements with structured logging for improved traceability.