Rev 1603 | Rev 1964 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1603 | Rev 1657 | ||
|---|---|---|---|
| Line 65... | Line 65... | ||
| 65 | 65 | ||
| 66 | void Logger::Error(std::string message) |
66 | void Logger::Error(std::string message) |
| 67 | { |
67 | { |
| 68 | if (Logger::level_ >= Logger::LEVEL_ERROR) |
68 | if (Logger::level_ >= Logger::LEVEL_ERROR) |
| 69 | { |
69 | { |
| 70 | this->Print(" ERROR " + this->name_ + message); |
70 | this->Print(" ERROR " + this->name_ + "\033[31m" + message + "\033[0m"); |
| 71 | } |
71 | } |
| 72 | } |
72 | } |
| 73 | 73 | ||
| 74 | void Logger::Warning(std::string message) |
74 | void Logger::Warning(std::string message) |
| 75 | { |
75 | { |
| 76 | if (Logger::level_ >= Logger::LEVEL_WARNING) |
76 | if (Logger::level_ >= Logger::LEVEL_WARNING) |
| 77 | { |
77 | { |
| 78 | this->Print(" WARN " + this->name_ + message); |
78 | this->Print(" WARN " + this->name_ + "\033[33m" + message + "\033[0m"); |
| 79 | } |
79 | } |
| 80 | } |
80 | } |
| 81 | 81 | ||
| 82 | void Logger::Info(std::string message) |
82 | void Logger::Info(std::string message) |
| 83 | { |
83 | { |
| Line 89... | Line 89... | ||
| 89 | 89 | ||
| 90 | void Logger::Debug(std::string message) |
90 | void Logger::Debug(std::string message) |
| 91 | { |
91 | { |
| 92 | if (Logger::level_ >= Logger::LEVEL_DEBUG) |
92 | if (Logger::level_ >= Logger::LEVEL_DEBUG) |
| 93 | { |
93 | { |
| 94 | this->Print(" DEBUG " + this->name_ + message); |
94 | this->Print(" DEBUG " + this->name_ + "\033[35m" + message + "\033[0m"); |
| 95 | } |
95 | } |
| 96 | } |
96 | } |
| 97 | 97 | ||
| 98 | void Logger::Print(std::string line) |
98 | void Logger::Print(std::string line) |
| 99 | { |
99 | { |