Electron-builder: Write to console.log / process.stdout on Windows

Created on 30 Aug 2017  路  1Comment  路  Source: electron-userland/electron-builder

  • Version: 19.26.3
  • Target: Windows (+ Mac, Linux is working fine)

This is possibly unrelated to electron-builder and possibly also a stupid question but I'm having real difficulty figuring out how to get access to console.log / process.stdout.write on Windows. Any output to those functions will be silently disguarded and the console (when the .exe is run from it) will not show anything.

Executables compiled for on Linux are working fine. I cannot currently test on Mac but assume its also fine there.

I understand Windows has a differentiation between GUI and console applications and tried a few different workarounds but for the life of me I cannot figure out how to do this (or even if its possible).

question

>All comments

Was this page helpful?
0 / 5 - 0 ratings