Last change
on this file since 100 was
81,
checked in by Maciej Komosinski, 12 years ago
|
improved parsing of properties (e.g. in f0 genotypes)
|
-
Property svn:eol-style set to
native
|
File size:
670 bytes
|
Line | |
---|
1 | // This file is a part of the Framsticks GDK library. |
---|
2 | // Copyright (C) 2002-2011 Szymon Ulatowski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.framsticks.com/ for further information. |
---|
4 | |
---|
5 | #include "stdouterr.h" |
---|
6 | #ifdef SHP |
---|
7 | #include <FBaseSys.h> //AppLog |
---|
8 | #else |
---|
9 | #include <stdio.h> |
---|
10 | #endif |
---|
11 | |
---|
12 | void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w) |
---|
13 | { |
---|
14 | static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"}; |
---|
15 | if (w<-1) w=-1; else if (w>3) w=3; |
---|
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 |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.