diff -r f821f7d727b7 -r 1ed603a54ebd project_files/frontlib/util/logging.h --- a/project_files/frontlib/util/logging.h Wed Jul 18 21:34:49 2012 +0200 +++ b/project_files/frontlib/util/logging.h Thu Jul 19 17:56:38 2012 +0200 @@ -84,4 +84,10 @@ void flib_log_setFile(FILE *logfile); bool flib_log_isActive(int level); +/** + * Allows logging through an arbitrary callback function. Useful for integrating into an + * existing logging system. This overrides setFile and vice versa. + */ +void flib_log_setCallback(void (*logCallback)(int level, const char *msg)); + #endif /* LOGGING_H_ */