Changeset 340 for cpp/common/framsg.cpp
- Timestamp:
- 03/24/15 20:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/common/framsg.cpp
r286 r340 8 8 #include "Convert.h" 9 9 10 const char* MSG_LEVEL[]={" DEBUG","INFO","WARN","ERROR","CRITICAL"};10 const char* MSG_LEVEL[]={"[DEBUG] ","","[WARN] ","[ERROR] ","[CRITICAL] "}; 11 11 12 12 void FramMessage(const char *o, const char *m, const char *txt, int w) … … 29 29 } 30 30 else //consecutive lines from multi-line 31 _FramMessageSingleLine(o, m, ( "..."+ string(txt, nextsep - txt)).c_str(), w); //could also add line numbers like ...(3)... but let's keep the prefix short and simple31 _FramMessageSingleLine(o, m, (FRAMSG_MULTILINE_CONTINUATION + string(txt, nextsep - txt)).c_str(), w); //could also add line numbers like ...(3)... but let's keep the prefix short and simple 32 32 line++; 33 33 if ((nextsep[0] == '\r') && (nextsep[1] == '\n'))
Note: See TracChangeset
for help on using the changeset viewer.