summaryrefslogtreecommitdiffstats
path: root/include/astra/Logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/astra/Logging.h')
-rw-r--r--include/astra/Logging.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/astra/Logging.h b/include/astra/Logging.h
index 5695663..e822c24 100644
--- a/include/astra/Logging.h
+++ b/include/astra/Logging.h
@@ -75,7 +75,7 @@ public:
* @param ...
* Any additional format arguments.
*/
- static void debug(const char *sfile, int sline, const char *fmt, ...);
+ static void debug(const char *sfile, int sline, const char *fmt, ...);
static void info(const char *sfile, int sline, const char *fmt, ...);
static void warn(const char *sfile, int sline, const char *fmt, ...);
static void error(const char *sfile, int sline, const char *fmt, ...);
@@ -143,6 +143,13 @@ public:
static void disableScreen();
static void disableFile();
+ /**
+ * Set callback function for logging to screen.
+ * @return whether callback was set succesfully.
+ *
+ */
+ static bool setCallbackScreen(void (*cb)(const char *msg, size_t len));
+
};
}