Last change
on this file since 57 was
5,
checked in by sz, 16 years ago
|
added the GDK (Genotype Development Kit)
|
File size:
468 bytes
|
Line | |
---|
1 | // This file is a part of Framsticks GDK library. |
---|
2 | // Copyright (C) 2002-2006 Szymon Ulatowski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.frams.alife.pl/ for further information. |
---|
4 | |
---|
5 | #include "stdouterr.h" |
---|
6 | #include <stdio.h> |
---|
7 | |
---|
8 | void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w) |
---|
9 | { |
---|
10 | static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"}; |
---|
11 | if (w<-1) w=-1; else if (w>3) w=3; |
---|
12 | printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl); |
---|
13 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.