Changed: #991 Make sure all debug files are created in log directory

This commit is contained in:
kervala 2010-07-10 15:17:13 +02:00
parent 31236e1dea
commit b9750904f1
5 changed files with 7 additions and 8 deletions

View file

@ -194,7 +194,7 @@ void statRyzomBug(const char *dirSrc)
CPath::getPathContent(dirSrc, false, false, true, fileList, NULL, true); CPath::getPathContent(dirSrc, false, false, true, fileList, NULL, true);
// delete the log.log // delete the log.log
CFile::deleteFile("log.log"); CFile::deleteFile(getLogDirectory() + "log.log");
TStatStrMap senderMap; TStatStrMap senderMap;
TStatMap shardMap; TStatMap shardMap;

View file

@ -661,7 +661,7 @@ int main(int argc, const char *argv[])
// Open log // Open log
FILE *logStream; FILE *logStream;
logStream= fopen("C:/temp/file_info.log", "wt"); logStream= fopen(std::string(getLogDirectory() + "file_info.log").c_str(), "wt");
// parse dir or file ?? // parse dir or file ??

View file

@ -120,8 +120,6 @@ void init()
} }
// //
CFileDisplayer fd("evallog.log", true);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// Filter addSearchPath // Filter addSearchPath
@ -129,6 +127,7 @@ int main(int argc, char **argv)
InfoLog->addNegativeFilter("adding the path"); InfoLog->addNegativeFilter("adding the path");
createDebug(); createDebug();
CFileDisplayer fd(getLogDirectory() + "evallog.log", true);
try try
{ {

View file

@ -299,14 +299,14 @@ void moulineZones(vector<string> &zoneNames)
/****************************************************************\ /****************************************************************\
MAIN MAIN
\****************************************************************/ \****************************************************************/
CFileDisplayer fd("evallog.log", true);
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
// Filter addSearchPath // Filter addSearchPath
NLMISC::createDebug(); NLMISC::createDebug();
InfoLog->addNegativeFilter ("adding the path"); InfoLog->addNegativeFilter ("adding the path");
CFileDisplayer fd(getLogDirectory() + "evallog.log", true);
#ifdef LOG_ALL_INFO_TO_FILE #ifdef LOG_ALL_INFO_TO_FILE
createDebug(); createDebug();
DebugLog->addDisplayer (&fd); DebugLog->addDisplayer (&fd);

View file

@ -1233,8 +1233,8 @@ bool forageTestDoExtract(
} }
// Request and output results // Request and output results
FILE *f = fopen( "forage_test.csv", "at" ); FILE *f = fopen( std::string(getLogDirectory() + "forage_test.csv").c_str(), "at" );
FILE *f2 = fopen( "forage_test.log", "at" ); FILE *f2 = fopen( std::string(getLogDirectory() + "forage_test.log").c_str(), "at" );
float reqS = 1.0f / (reqPeriod * 10.0f); float reqS = 1.0f / (reqPeriod * 10.0f);
float req [CHarvestSource::NbPosRTProps]; float req [CHarvestSource::NbPosRTProps];
float abs [CHarvestSource::NbPosRTProps]; float abs [CHarvestSource::NbPosRTProps];