This refactor replaces direct print() statements throughout the codebase with proper logging using the Python logging module. The changes ensure that all output is properly logged and can be ...