From: Borrillis <bor...@us...> - 2005-01-03 19:57:43
|
Update of /cvsroot/planeshift/planeshift/src/common/util In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5025/src/common/util Modified Files: log.cpp log.h Log Message: - changed logging to LogCSV - Added length check on advice answers - added new option /advisormode showpoints : now displays current points at any time. - added new option /advisormode listsessions : now displays current advisees. Index: log.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/log.cpp,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** log.cpp 27 Dec 2004 08:52:56 -0000 1.33 --- log.cpp 3 Jan 2005 19:57:33 -0000 1.34 *************** *** 211,214 **** --- 211,215 ---- filename[CSV_AUTHENT] = configmanager->GetStr("Planeshift.LogCSV.File.Authent"); filename[CSV_STATUS] = configmanager->GetStr("Planeshift.LogCSV.File.Status"); + filename[CSV_ADVICE] = configmanager->GetStr("Planeshift.LogCSV.File.Advice"); for(int i = 0;i < MAX_CSV;i++) *************** *** 236,239 **** --- 237,243 ---- header = "Date/Time, Status\n"; break; + case CSV_ADVICE: + header = "Date/Time, Source Client, Target Client, Message\n"; + break; } csvFile[i]->Write(header.GetData(), header.Length()); Index: log.h =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/common/util/log.h,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** log.h 27 Dec 2004 08:52:56 -0000 1.21 --- log.h 3 Jan 2005 19:57:33 -0000 1.22 *************** *** 64,68 **** CSV_PALADIN, CSV_STATUS, ! MAX_CSV }; --- 64,69 ---- CSV_PALADIN, CSV_STATUS, ! CSV_ADVICE, ! MAX_CSV }; |