Windows GUI programs close all stdin/stdout/stderr by default.
This
patch adds the native logging support provided by Windows.
mural (1):
app/internal/log: add logger for Windows DbgView
app/internal/log/log_windows.go | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 app/internal/log/log_windows.go
--
2.24.1
Thank you. Can you say something about where the debugging output end
up (I don't have much Windows development experience)? How will the
change affect programs that are not built with `-H windowsgui`?
There is a tool named DebugView.exe that collects the log messages, which serves a similar role as logcat on Android. You can get it from the SysInternals: https://docs.microsoft.com/en-us/sysinternals/downloads/sysinternals-suite
As I tested it, if the program is built without '-H windowsgui', log.Printf will outputs to DebugView.exe but not to stdout.
Thank you. Can you say something about where the debugging output end
up (I don't have much Windows development experience)? How will the
change affect programs that are not built with `-H windowsgui`?
On Thu Jan 9, 2020 at 3:43 PM, ~typeless wrote: