From: <br...@us...> - 2008-11-04 10:15:30
|
Revision: 427 http://acmcontester.svn.sourceforge.net/acmcontester/?rev=427&view=rev Author: brus07 Date: 2008-11-04 10:15:26 +0000 (Tue, 04 Nov 2008) Log Message: ----------- Write to log all works information in Tester. Modified Paths: -------------- ACMServer/trunk/ACMServer/Plugins/TesterPlugins/TestRunnerPlugin/WorkRunner.cs Modified: ACMServer/trunk/ACMServer/Plugins/TesterPlugins/TestRunnerPlugin/WorkRunner.cs =================================================================== --- ACMServer/trunk/ACMServer/Plugins/TesterPlugins/TestRunnerPlugin/WorkRunner.cs 2008-10-31 21:51:12 UTC (rev 426) +++ ACMServer/trunk/ACMServer/Plugins/TesterPlugins/TestRunnerPlugin/WorkRunner.cs 2008-11-04 10:15:26 UTC (rev 427) @@ -1,6 +1,7 @@ using System; using System.Threading; using AcmContester.Library.LibraryExtention; +using System.IO; namespace AcmContester.Plugins.TesterPlugins.TestRunnerPlugin { @@ -14,6 +15,19 @@ object working = 0; Thread thread = new Thread(new ParameterizedThreadStart(Go)); + public WorkRunner() + { + try + { + StreamWriter sw = File.AppendText("testerlog.txt"); + Log log = Log.GetLog(sw, Log.Priority.EMPTY); + } + catch (Exception) + { + //UpdateTextLog("\r\n\tLogFile can't open. Working without logging to LogFile."); + } + } + internal bool IsBusy() { lock (working) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |