summaryrefslogtreecommitdiff
path: root/src/log.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-11 01:08:52 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-11 01:08:52 +0000
commit06c3e2cbf10034bd348376632ccc30de9da97e5d (patch)
treeb17a6f6dd71571aa8192003ecdc976ebb717027f /src/log.h
parent2a964c1fa537e58daee14af6a68a3ef0224c8d65 (diff)
downloadmana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.gz
mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.bz2
mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.tar.xz
mana-06c3e2cbf10034bd348376632ccc30de9da97e5d.zip
Removed Allegro dependency on logger, which now also produces timestamped
categorized messages instead of using the configuration file approach.
Diffstat (limited to 'src/log.h')
-rw-r--r--src/log.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/log.h b/src/log.h
index b3a7bbe9..3b91bf8a 100644
--- a/src/log.h
+++ b/src/log.h
@@ -26,16 +26,13 @@
#ifndef _LOG_H
#define _LOG_H
-#include <allegro.h>
-#ifdef WIN32
-#include <winalleg.h>
-#endif
+#include <stdlib.h>
#include <stdio.h>
+#include <stdarg.h>
+#include <time.h>
void init_log();
-void log(const char *log_section, const char *log_name, const char *log_text);
-void log_hex(const char *log_section, const char *log_name, const short log_value);
-void log_int(const char *log_section, const char *log_name, const int log_value);
+void log(const char *category, const char *log_text, ...);
void error(const char *error_text);
void warning(const char *warning_text);
void status(const char *status_text);