Changeset 1215 for cpp/common
- Timestamp:
- 04/17/23 00:04:28 (21 months ago)
- Location:
- cpp/common/loggers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/loggers/loggers.cpp
r1075 r1215 156 156 string LoggerToMemory::getCountSummary() const 157 157 { 158 if (get InfoCount())158 if (getErrorWarningInfoCount()) 159 159 { 160 160 string msg; … … 162 162 msg = ssprintf("%d error(s)", getErrorCount()); 163 163 int w; 164 if ((w = getWarningCount() - getErrorCount()))165 msg += ssprintf("%s%d warning(s)", ( getErrorCount()? ", " : ""), w);166 if ((w = getInfoCount() - getWarningCount()))167 msg += ssprintf("%s%d message(s)", ( getWarningCount()? ", " : ""), w);164 if ((w = getWarningCount())) 165 msg += ssprintf("%s%d warning(s)", (msg.size()>0 ? ", " : ""), w); 166 if ((w = getInfoCount())) 167 msg += ssprintf("%s%d message(s)", (msg.size()>0 ? ", " : ""), w); 168 168 return msg; 169 169 } -
cpp/common/loggers/loggers.h
r1130 r1215 95 95 96 96 int getErrorCount() const { return errcount; } 97 int getWarningCount() const { return warncount; } 98 int getInfoCount() const { return infocount; } 97 int getErrorWarningCount() const { return warncount; } //previously: getWarningCount() 98 int getErrorWarningInfoCount() const { return infocount; } //previously: getInfoCount() 99 int getWarningCount() const { return warncount-errcount; } 100 int getInfoCount() const { return infocount-warncount; } 99 101 int getStoredCount() const { return storedcount; } 100 102 int getErrorLevel() const { return maxlevel; }
Note: See TracChangeset
for help on using the changeset viewer.