- Timestamp:
- 05/31/14 21:31:01 (11 years ago)
- Location:
- cpp/frams/errmgr
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/errmgr/errmanager.cpp
r197 r244 6 6 #include <common/stl-util.h> 7 7 8 void FramMessage(const char *o,const char *m,const char *bl,int w)8 void _FramMessageSingleLine(const char *o, const char *m, const char *txt, int w) 9 9 { 10 tlsGetRef(errmgr_instance).send(o,m, bl,w);10 tlsGetRef(errmgr_instance).send(o,m,txt,w); 11 11 } 12 12 -
cpp/frams/errmgr/stdouterr.cpp
r197 r244 10 10 #endif 11 11 12 void StdoutErrorHandler::handle(const char *o, const char *m,const char *bl,int w)12 void StdoutErrorHandler::handle(const char *o, const char *m, const char *bl, int w) 13 13 { 14 if (w<-1) w=-1; else if (w>3) w=3;14 if (w < -1) w = -1; else if (w>3) w = 3; 15 15 #ifdef SHP 16 AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);16 AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); 17 17 #else 18 if (file)19 file->printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);20 else21 printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);18 if (file) 19 file->printf("[%s] %s::%s - %s\n", MSG_LEVEL[w + 1], o, m, bl); 20 else 21 printf("[%s] %s::%s - %s\n", MSG_LEVEL[w + 1], o, m, bl); 22 22 #endif 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.