Changeset 522 for cpp/common/loggers/loggers.cpp
- Timestamp:
- 06/23/16 00:15:59 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/loggers/loggers.cpp
r511 r522 155 155 string LoggerToMemory::getCountSummary() const 156 156 { 157 if (getInfoCount())157 if (getInfoCount()) 158 158 { 159 string msg;160 if (getErrorCount())161 msg=ssprintf("%d error(s)",getErrorCount());162 int w;163 if (w=getWarningCount()-getErrorCount())164 msg+=ssprintf("%s%d warning(s)",(getErrorCount()?", ":""),w);165 if (w=getInfoCount()-getWarningCount())166 msg+=ssprintf("%s%d message(s)",(getWarningCount()?", ":""),w);167 return msg;159 string msg; 160 if (getErrorCount()) 161 msg = ssprintf("%d error(s)", getErrorCount()); 162 int w; 163 if (w = getWarningCount() - getErrorCount()) 164 msg += ssprintf("%s%d warning(s)", (getErrorCount() ? ", " : ""), w); 165 if (w = getInfoCount() - getWarningCount()) 166 msg += ssprintf("%s%d message(s)", (getWarningCount() ? ", " : ""), w); 167 return msg; 168 168 } 169 return string("");169 return string(""); 170 170 } 171 171
Note: See TracChangeset
for help on using the changeset viewer.