diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-11 01:08:52 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-11 01:08:52 +0000 |
commit | 06c3e2cbf10034bd348376632ccc30de9da97e5d (patch) | |
tree | b17a6f6dd71571aa8192003ecdc976ebb717027f /src/log.h | |
parent | 2a964c1fa537e58daee14af6a68a3ef0224c8d65 (diff) | |
download | mana-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.h | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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); |