How to capture the stdout stream of an electron application in windows?
If you run .\App.exe > log.txt
and you can see the output string in the console it means that the string is not being written to STDOUT (the Success output stream in PowerShell terms) in the first place.
Apparently the Electron developers decided to attach stdout
directly to the console instead of actual STDOUT (see issue #4552). If I understand the discussion there correctly you can set the environment variable ELECTRON_NO_ATTACH_CONSOLE
to avoid this behavior.