#programming #tips #python #code_quality

If you want to change your print statements to logging semi-automically you can use the regex

`print\(\s*"([^"]+)"\s*,\s*((.+)\))`

and replacement string

`logger.info(f"$1=\{$3\}")`

(PyCharm) to automatically convert e.g. print("len(stream_process_table)", len(stream_process_table)) to logger.info(f"len(stream_process_table)={len(stream_process_table)}"