Changeset 8795 for code/branches/output/src/libraries/util
- Timestamp:
- Jul 29, 2011, 10:26:45 PM (13 years ago)
- Location:
- code/branches/output/src/libraries/util/output
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/output/src/libraries/util/output/BaseWriter.cc
r8794 r8795 47 47 48 48 for (size_t i = 0; i < lines.size(); ++i) 49 this->printLine((i == 0 ? prefix : blanks) + lines[i] );49 this->printLine((i == 0 ? prefix : blanks) + lines[i], level); 50 50 } 51 51 } -
code/branches/output/src/libraries/util/output/BaseWriter.h
r8794 r8795 45 45 46 46 private: 47 virtual void printLine(const std::string& line ) = 0;47 virtual void printLine(const std::string& line, OutputLevel level) = 0; 48 48 }; 49 49 } -
code/branches/output/src/libraries/util/output/ConsoleWriter.cc
r8794 r8795 37 37 ConsoleWriter::ConsoleWriter() 38 38 { 39 #ifdef ORXONOX_RELEASE 39 40 this->setLevelMax(level::user_info); 41 #else 42 this->setLevelMax(level::internal_warning); 43 #endif 40 44 this->bEnabled_ = true; 41 45 } … … 51 55 } 52 56 53 void ConsoleWriter::printLine(const std::string& line )57 void ConsoleWriter::printLine(const std::string& line, OutputLevel) 54 58 { 55 59 std::cout << line << std::endl; -
code/branches/output/src/libraries/util/output/ConsoleWriter.h
r8794 r8795 44 44 45 45 protected: 46 virtual void printLine(const std::string& line );46 virtual void printLine(const std::string& line, OutputLevel level); 47 47 48 48 private: -
code/branches/output/src/libraries/util/output/LogWriter.cc
r8794 r8795 74 74 75 75 if (this->file_.is_open()) 76 this->printLine("Log file opened" );76 this->printLine("Log file opened", level::none); 77 77 else 78 78 OutputManager::getInstance().pushMessage(level::user_warning, context::output(), "Failed to open log file. File logging disabled."); … … 83 83 if (this->file_.is_open()) 84 84 { 85 this->printLine("Log file closed" );85 this->printLine("Log file closed", level::none); 86 86 this->file_.close(); 87 87 } … … 100 100 } 101 101 102 void LogWriter::printLine(const std::string& line )102 void LogWriter::printLine(const std::string& line, OutputLevel) 103 103 { 104 104 if (!this->file_.is_open()) -
code/branches/output/src/libraries/util/output/LogWriter.h
r8794 r8795 46 46 47 47 protected: 48 virtual void printLine(const std::string& line );48 virtual void printLine(const std::string& line, OutputLevel level); 49 49 50 50 private:
Note: See TracChangeset
for help on using the changeset viewer.