Revision: 3999
http://nasa-exp.svn.sourceforge.net/nasa-exp/?rev=3999&view=rev
Author: isaac_apogee
Date: 2008-03-17 23:24:43 -0700 (Mon, 17 Mar 2008)
Log Message:
-----------
WW-877: Changed writing/creation of log files for debug only
Modified Paths:
--------------
trunk/WorldWind/Utilities/Log.cs
Modified: trunk/WorldWind/Utilities/Log.cs
===================================================================
--- trunk/WorldWind/Utilities/Log.cs 2008-03-18 06:20:11 UTC (rev 3998)
+++ trunk/WorldWind/Utilities/Log.cs 2008-03-18 06:24:43 UTC (rev 3999)
@@ -188,12 +188,14 @@
string firstStackTraceLine = stacktrace[0];
functionName = firstStackTraceLine.Trim().Split(" (".ToCharArray())[1];
}
+#if DEBUG
string logFileName = string.Format("DEBUG_{0}.txt", DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss-ffff"));
string logFullPath = Path.Combine(logPath, logFileName);
using (StreamWriter sw = new StreamWriter(logFullPath, false))
{
sw.WriteLine(caught.ToString());
}
+#endif
Write(Log.Levels.Error, "caught exception: ");
Write(Log.Levels.Error, caught.ToString());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|