Revision: 4242
http://tigervnc.svn.sourceforge.net/tigervnc/?rev=4242&view=rev
Author: atkac
Date: 2011-01-26 19:09:03 +0000 (Wed, 26 Jan 2011)
Log Message:
-----------
[Development] winvnc: Enable debug output when built with -D_DEBUG
Modified Paths:
--------------
trunk/win/winvnc/winvnc.cxx
Modified: trunk/win/winvnc/winvnc.cxx
===================================================================
--- trunk/win/winvnc/winvnc.cxx 2011-01-19 14:20:34 UTC (rev 4241)
+++ trunk/win/winvnc/winvnc.cxx 2011-01-26 19:09:03 UTC (rev 4242)
@@ -224,15 +224,25 @@
try {
// - Initialise the available loggers
//freopen("\\\\drupe\\tjr\\WinVNC4.log","ab",stderr);
- //setbuf(stderr, 0);
- initStdIOLoggers();
+#ifdef _DEBUG
+ AllocConsole();
+ freopen("CONIN$", "rb", stdin);
+ freopen("CONOUT$", "wb", stdout);
+ freopen("CONOUT$", "wb", stderr);
+ setbuf(stderr, 0);
+ initStdIOLoggers();
+ initFileLogger("C:\\temp\\WinVNC4.log");
+ logParams.setParam("*:stderr:100");
+#else
initFileLogger("C:\\temp\\WinVNC4.log");
+ logParams.setParam("*:stderr:0");
+#endif
rfb::win32::initEventLogLogger(VNCServerService::Name);
Configuration::enableServerParams();
// - By default, just log errors to stderr
- logParams.setParam("*:stderr:0");
+
// - Print program details and process the command line
programInfo();
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Tigervnc-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits