Changeset 1230 for code/branches/console/src/core/OutputHandler.h
- Timestamp:
- May 4, 2008, 4:44:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/console/src/core/OutputHandler.h
r1064 r1230 63 63 static inline std::string log(const std::string& text) 64 64 { OutputHandler::getOutStream().setOutputLevel(0); OutputHandler::getOutStream().output(text + "\n"); return text; } 65 66 /** @brief Puts an error on the outstream. @param text The text */ 67 static inline std::string error(const std::string& text) 68 { OutputHandler::getOutStream().setOutputLevel(1); OutputHandler::getOutStream().output(text + "\n"); return text; } 69 70 /** @brief Puts a warning on the outstream. @param text The text */ 71 static inline std::string warning(const std::string& text) 72 { OutputHandler::getOutStream().setOutputLevel(2); OutputHandler::getOutStream().output(text + "\n"); return text; } 73 74 /** @brief Puts an info on the outstream. @param text The text */ 75 static inline std::string info(const std::string& text) 76 { OutputHandler::getOutStream().setOutputLevel(3); OutputHandler::getOutStream().output(text + "\n"); return text; } 77 78 /** @brief Puts some debug output on the outstream. @param text The text */ 79 static inline std::string debug(const std::string& text) 80 { OutputHandler::getOutStream().setOutputLevel(4); OutputHandler::getOutStream().output(text + "\n"); return text; } 65 81 66 82 /** @brief Returns a reference to the logfile. @return The logfile */
Note: See TracChangeset
for help on using the changeset viewer.