Changeset 8775 for code/branches
- Timestamp:
- Jul 25, 2011, 12:01:30 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/OutputHandler.cc
r8729 r8775 46 46 namespace orxonox 47 47 { 48 //! How the log file shall be named on the filesystem49 const std::string logFileBaseName_g = "orxonox.log";50 51 48 ///////////////////////// 52 49 ///// LogFileWriter ///// … … 71 68 : OutputListener("LogFile") 72 69 { 70 this->logFileBaseName_ = "orxonox.log"; 71 73 72 // Get path for a temporary file 74 73 #ifdef ORXONOX_PLATFORM_WINDOWS 75 74 char* pTempDir = getenv("TEMP"); 76 this->logFilename_ = std::string(pTempDir) + '/' + logFileBaseName_g;75 this->logFilename_ = std::string(pTempDir) + '/' + this->logFileBaseName_; 77 76 #else 78 this->logFilename_ = std::string("/tmp/") + logFileBaseName_g;77 this->logFilename_ = std::string("/tmp/") + this->logFileBaseName_; 79 78 #endif 80 79 … … 110 109 111 110 // Open the new file 112 this->logFilename_ = path + logFileBaseName_g;111 this->logFilename_ = path + this->logFileBaseName_; 113 112 this->openFile(); 114 113 } … … 138 137 } 139 138 140 std::ofstream logFile_; //!< File handle for the log file 141 std::string logFilename_; //!< Filename of the log file 139 std::ofstream logFile_; //!< File handle for the log file 140 std::string logFilename_; //!< Filename of the log file 141 std::string logFileBaseName_; //!< How the log file shall be named on the filesystem 142 142 }; 143 143
Note: See TracChangeset
for help on using the changeset viewer.