Changeset 375 for cpp/frams/loggers/loggertostdout.cpp
- Timestamp:
- 04/26/15 00:59:09 (10 years ago)
- Location:
- cpp/frams/loggers
- Files:
-
- 1 copied
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/loggers/loggertostdout.cpp
r374 r375 3 3 // See LICENSE.txt for details. 4 4 5 #include " stdouthandler.h"5 #include "loggertostdout.h" 6 6 #ifdef SHP 7 7 #include <FBaseSys.h> //AppLog … … 10 10 #endif 11 11 12 void MessageHandlerToStdout::handle(const char *o, const char *m, const char *bl, int w)12 void LoggerToStdout::handle(const char *o, const char *m, int w, const char *bl) 13 13 { 14 14 if (w < -1) w = -1; else if (w>3) w = 3; 15 15 #ifdef SHP 16 AppLog( HMSG_FORMAT "\n",HMSG_LEVEL[w+1],o,m,bl);16 AppLog(LOG_FORMAT "\n",LOG_LEVEL[w+1],o,m,bl); 17 17 #else 18 18 if (file) 19 file->printf( HMSG_FORMAT "\n", HMSG_LEVEL[w + 1], o, m, bl);19 file->printf(LOG_FORMAT "\n", LOG_LEVEL[w + 1], o, m, bl); 20 20 else 21 printf( HMSG_FORMAT "\n", HMSG_LEVEL[w + 1], o, m, bl);21 printf(LOG_FORMAT "\n", LOG_LEVEL[w + 1], o, m, bl); 22 22 #endif 23 23 }
Note: See TracChangeset
for help on using the changeset viewer.