This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Python.h> | |
/***********************************************************/ | |
/* define logging function and logtypes for python.logging */ | |
/* by H.Dickten 2014 */ | |
/***********************************************************/ | |
enum logtypes {info, warning, error, debug}; | |
static void log_msg(int type, char *msg) | |
{ |