The old Windows viewer was capable of logging to file. This is essential
on Windows as stdout/stderr don't work well there. Make sure the new
viewer also has this functionality.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4907 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx
index 47fd551..fd1243e 100644
--- a/vncviewer/vncviewer.cxx
+++ b/vncviewer/vncviewer.cxx
@@ -290,6 +290,11 @@
bind_textdomain_codeset("libc", "UTF-8");
rfb::initStdIOLoggers();
+#ifdef WIN32
+ rfb::initFileLogger("C:\\temp\\vncviewer.log");
+#else
+ rfb::initFileLogger("/tmp/vncviewer.log");
+#endif
rfb::LogWriter::setLogParams("*:stderr:30");
#ifdef SIGHUP