Changeset 104 for cpp/gdk/stdouterr.cpp
- Timestamp:
- 07/23/13 18:15:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/gdk/stdouterr.cpp
r81 r104 1 1 // This file is a part of the Framsticks GDK library. 2 // Copyright (C) 2002-201 1Szymon Ulatowski. See LICENSE.txt for details.2 // Copyright (C) 2002-2013 Szymon Ulatowski. See LICENSE.txt for details. 3 3 // Refer to http://www.framsticks.com/ for further information. 4 4 … … 12 12 void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w) 13 13 { 14 static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};15 14 if (w<-1) w=-1; else if (w>3) w=3; 16 15 #ifdef SHP 17 AppLog("[%s] %s::%s - %s\n", level[w+1],o,m,bl);16 AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); 18 17 #else 19 18 if (file) 20 file->printf("[%s] %s::%s - %s\n", level[w+1],o,m,bl);19 file->printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); 21 20 else 22 printf("[%s] %s::%s - %s\n", level[w+1],o,m,bl);21 printf("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl); 23 22 #endif 24 23 }
Note: See TracChangeset
for help on using the changeset viewer.