Last change
on this file since 70 was
66,
checked in by Maciej Komosinski, 14 years ago
|
set 'eol-style' to 'native'
|
-
Property svn:eol-style set to
native
|
File size:
472 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 | #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.