Changeset 104 for cpp/gdk/stdouterr.cpp


Ignore:
Timestamp:
07/23/13 18:15:30 (11 years ago)
Author:
sz
Message:

introducing object de/serialization - see serialtest.cpp
the core GDK classes can be now used in multiple threads (ifdef MULTITHREADED)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/stdouterr.cpp

    r81 r104  
    11// This file is a part of the Framsticks GDK library.
    2 // Copyright (C) 2002-2011  Szymon Ulatowski.  See LICENSE.txt for details.
     2// Copyright (C) 2002-2013  Szymon Ulatowski.  See LICENSE.txt for details.
    33// Refer to http://www.framsticks.com/ for further information.
    44
     
    1212void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w)
    1313{
    14 static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
    1514if (w<-1) w=-1; else if (w>3) w=3;
    1615#ifdef SHP
    17 AppLog("[%s] %s::%s - %s\n",level[w+1],o,m,bl);
     16AppLog("[%s] %s::%s - %s\n",MSG_LEVEL[w+1],o,m,bl);
    1817#else
    1918if (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);
    2120else
    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);
    2322#endif
    2423}
Note: See TracChangeset for help on using the changeset viewer.