project_files/frontlib/util/logging.h
changeset 7338 1ed603a54ebd
parent 7316 f7b49b2c5d84
child 7482 d70a5b0d1190
--- 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_ */