Changeset 244 in pacpusframework
- Timestamp:
- Dec 2, 2013, 12:30:29 PM (11 years ago)
- Location:
- trunk/src/PacpusLib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/PacpusLib/ColorSeverityFormatter.hpp
r243 r244 18 18 #if defined(PACPUS_LOG_COLORED_OUTPUT) 19 19 20 #include <boost/assert.hpp> 20 21 #include <boost/log/attributes/attribute_name.hpp> 21 22 #include <boost/log/attributes/fallback_policy.hpp> … … 85 86 case COLOR_CYAN: return FOREGROUND_GREEN | FOREGROUND_BLUE; 86 87 case COLOR_WHITE: return FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE; 87 default: return 0; 88 case COLOR_DEFAULT: return 0; 89 default: 90 BOOST_ASSERT(false && "wrong Color enum value"); 91 return 0; 88 92 } 89 93 } … … 195 199 : mStreamHandle(GetStdHandle(STD_OUTPUT_HANDLE)) 196 200 //, mSavedConsoleBufferInfo(savedConsoleBufferInfo) 197 , mSavedConsoleBufferInfo(getColorAttribute(COLOR_WHITE) | FOREGROUND_INTENSITY) // FIXME: restore old value, not just reset201 , mSavedConsoleBufferInfo(getColorAttribute(COLOR_WHITE)) // FIXME: restore old value, not just reset 198 202 #endif // defined(PACPUS_OS_WINDOWS) && !defined(PACPUS_OS_WINDOWS_MOBILE) 199 203 { -
trunk/src/PacpusLib/Log.cpp
r239 r244 30 30 #include <ostream> 31 31 #include <QString> 32 33 //template <typename CharT> 34 //PACPUSLIB_API std::basic_ostream<CharT>& operator<< (std::basic_ostream<CharT>& strm, QString const& s) 35 //{ 36 // strm << s.toLocal8Bit().data(); 37 // return strm; 38 //} 32 39 33 40 // specialization for char … … 151 158 sink->set_filter 152 159 ( 160 #ifdef NDEBUG 161 // release 153 162 severity >= info 163 #else 164 // debug 165 severity >= debug 166 #endif 154 167 ); 155 168
Note:
See TracChangeset
for help on using the changeset viewer.