How can I view Python print statements in the command window in a production environment?

I am using ERPNext Quick Install in a production environment. In the local development setup, Python print statements appear in the command prompt, which helps me with debugging. However, in the production environment, these print statements do not show up in the command prompt. This issue arises because the bench start command is executed by a different shell.

How can I view the Python print statements in the command prompt through an SSH login?

Any assistance would be greatly appreciated.

Reference - GitHub - flexcomng/erpnext_quick_install: Unattended install script for ERPNext Versions, 13, 14 and 15