Changeset 340 for cpp/common
- Timestamp:
- 03/24/15 20:51:28 (10 years ago)
- Location:
- cpp/common
- Files:
-
- 2 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')) -
cpp/common/framsg.h
r339 r340 9 9 10 10 extern const char* MSG_LEVEL[]; 11 #define FRAMSG_FORMAT "[%s] %s.%s: %s" 11 #define FRAMSG_FORMAT "%s%s.%s: %s" 12 #define FRAMSG_MULTILINE_CONTINUATION "..." 12 13 13 14 void FMprintf(const char *o,const char *m,int w,const char *bl, ...);
Note: See TracChangeset
for help on using the changeset viewer.