aboutsummaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/log.h b/src/log.h
new file mode 100644
index 0000000..7fdfa92
--- /dev/null
+++ b/src/log.h
@@ -0,0 +1,24 @@
+/* See LICENSE file for copyright and license details. */
+
+#ifndef __LOG_H__
+#define __LOG_H__
+
+typedef struct Log {
+ const char *filename;
+ int level;
+} Log;
+
+Log *log_create(const char *);
+
+void log_debug(Log *, char *);
+void log_error(Log *, char *);
+void log_info(Log *, char *);
+void log_warn(Log *, char *);
+
+int log_is_debug(Log *);
+int log_is_error(Log *);
+int log_is_info(Log *);
+int log_is_warn(Log *);
+
+
+#endif /* __LOG_H__ */