1
0
forked from 0ad/0ad

fixed path to log file

This was SVN commit r295.
This commit is contained in:
janwas 2004-05-29 16:36:28 +00:00
parent a3b02c8c8e
commit 0f02c697c4

View File

@ -39,8 +39,11 @@ CLogger::CLogger()
memset(m_MemoryLog,0,MEMORY_BUFFER_SIZE); memset(m_MemoryLog,0,MEMORY_BUFFER_SIZE);
m_MainLog.open ("logs/mainlog.html",ofstream::out | ofstream::trunc); // current directory is $install_dir/data, we want $install_dir/logs.
m_DetailedLog.open ("logs/detailedlog.html",ofstream::out | ofstream::trunc ); // TODO: make sure we are called after file_rel_chdir,
// or else cur dir may be anywhere
m_MainLog.open ("../logs/mainlog.html",ofstream::out | ofstream::trunc);
m_DetailedLog.open ("../logs/detailedlog.html",ofstream::out | ofstream::trunc );
//Write Headers for the HTML documents //Write Headers for the HTML documents
m_MainLog << MAIN_HEADER; m_MainLog << MAIN_HEADER;