aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/logging.h')
-rw-r--r--NorthstarDedicatedTest/logging.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/logging.h b/NorthstarDedicatedTest/logging.h
new file mode 100644
index 00000000..aa19b8f1
--- /dev/null
+++ b/NorthstarDedicatedTest/logging.h
@@ -0,0 +1,11 @@
+#pragma once
+#include "context.h"
+
+typedef void(*LoggingSink)(Context context, char* fmt);
+
+void Log(Context context, char* fmt, ...);
+void Log(Context context, char* fmt, va_list args);
+void AddLoggingSink(LoggingSink sink);
+
+// default logging sink
+void DefaultLoggingSink(Context context, char* message); \ No newline at end of file