summaryrefslogtreecommitdiff
path: root/server/include/logging.h
diff options
context:
space:
mode:
Diffstat (limited to 'server/include/logging.h')
-rw-r--r--server/include/logging.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/server/include/logging.h b/server/include/logging.h
new file mode 100644
index 0000000..a964230
--- /dev/null
+++ b/server/include/logging.h
@@ -0,0 +1,18 @@
+#ifndef MRAT_LOGGING_H
+#define MRAT_LOGGING_H
+
+#include <stdio.h>
+#include <stdarg.h>
+
+enum LOG_LEVEL {
+ LOG_SEVERE,
+ LOG_WARNING,
+ LOG_INFO,
+ LOG_DEBUG,
+};
+
+int init_logging(FILE *out_file);
+int vlog_msg(int level, const char *fmt, va_list args);
+int log_msg(int level, const char *fmt, ...);
+
+#endif