summaryrefslogtreecommitdiff
path: root/lib/logger
diff options
context:
space:
mode:
Diffstat (limited to 'lib/logger')
-rw-r--r--lib/logger/log.c22
-rw-r--r--lib/logger/log.h12
2 files changed, 34 insertions, 0 deletions
diff --git a/lib/logger/log.c b/lib/logger/log.c
new file mode 100644
index 0000000..85ac5b6
--- /dev/null
+++ b/lib/logger/log.c
@@ -0,0 +1,22 @@
+#include "log.h"
+
+
+void PutConsole(char *str, int color, va_list va);
+
+void log(char *module_name, int prio, char *format_string, ...)
+{
+
+ PutConsole(module_name,1000,0);
+ PutConsole(": ",0xf,0);
+ va_list va;
+ va_start(va,format_string);
+
+ PutConsole(format_string, 6000, va);
+
+ va_end(va);
+ PutConsoleNL();
+
+
+
+
+}
diff --git a/lib/logger/log.h b/lib/logger/log.h
new file mode 100644
index 0000000..bcc1bc7
--- /dev/null
+++ b/lib/logger/log.h
@@ -0,0 +1,12 @@
+#ifndef FOOLOS_LOG_H
+#define FOOLOS_LOGL_H
+
+
+#define FOOLOS_LOG_INFO 1
+
+#include <stdarg.h>
+
+void log(char *module_name, int prio, char *format_string, ...);
+
+#endif
+