Recently we have added basic startup logs and because of that we came to know that pgAdmin4 is not able to open the log file if the file path contains Cyrillic alphabet or Special characters.
fopen fails to open the file, so I have used _wfopen for Windows operating system.
Attached is the patch to fix that issue. Please review it.