Changeset 81 for cpp/gdk/stdouterr.cpp
- Timestamp:
- 02/08/13 03:29:17 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/stdouterr.cpp
r66 r81 4 4 5 5 #include "stdouterr.h" 6 #ifdef SHP 7 #include <FBaseSys.h> //AppLog 8 #else 6 9 #include <stdio.h> 10 #endif 7 11 8 12 void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w) … … 10 14 static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"}; 11 15 if (w<-1) w=-1; else if (w>3) w=3; 12 printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl); 16 #ifdef SHP 17 AppLog("[%s] %s::%s - %s\n",level[w+1],o,m,bl); 18 #else 19 if (file) 20 file->printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl); 21 else 22 printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl); 23 #endif 13 24 }
Note: See TracChangeset
for help on using the changeset viewer.