source: cpp/gdk/stdouterr.cpp @ 5

Last change on this file since 5 was 5, checked in by sz, 15 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
8void StdoutErrorHandler::handle(const char *o,const char *m,const char *bl,int w)
9{
10static char* level[]={"DEBUG","INFO","WARN","ERROR","CRITICAL"};
11if (w<-1) w=-1; else if (w>3) w=3;
12printf("[%s] %s::%s - %s\n",level[w+1],o,m,bl);
13}
Note: See TracBrowser for help on using the repository browser.