]> source.dussan.org Git - tigervnc.git/commitdiff
The old Windows viewer was capable of logging to file. This is essential
authorPierre Ossman <ossman@cendio.se>
Thu, 26 Apr 2012 14:27:52 +0000 (14:27 +0000)
committerPierre Ossman <ossman@cendio.se>
Thu, 26 Apr 2012 14:27:52 +0000 (14:27 +0000)
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

vncviewer/vncviewer.cxx

index 47fd5516acfe5a06a3bf6a6d6bff78a54fbdac1c..fd1243ec7b87ae43b8c0c3dcaea2154b68c1cc75 100644 (file)
@@ -290,6 +290,11 @@ int main(int argc, char** argv)
   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