Changeset 81 for cpp/gdk/stdouterr.cpp


Ignore:
Timestamp:
02/08/13 03:29:17 (11 years ago)
Author:
Maciej Komosinski
Message:

improved parsing of properties (e.g. in f0 genotypes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/gdk/stdouterr.cpp

    r66 r81  
    44
    55#include "stdouterr.h"
     6#ifdef SHP
     7#include <FBaseSys.h> //AppLog
     8#else
    69#include <stdio.h>
     10#endif
    711
    812void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w)
     
    1014static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
    1115if (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
     17AppLog("[%s] %s::%s - %s\n",level[w+1],o,m,bl);
     18#else
     19if (file)
     20        file->printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl);
     21else
     22        printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl);
     23#endif
    1324}
Note: See TracChangeset for help on using the changeset viewer.