From bc41d39f27c7467970b751ed3ebea28b00a8a0b3 Mon Sep 17 00:00:00 2001 From: Danny Holman Date: Thu, 22 Aug 2024 20:58:03 -0500 Subject: core: add a basic logging framework Add a basic framework for logging messages to the console or to a file. Signed-off-by: Danny Holman --- include/rune_logging.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/rune_logging.h (limited to 'include/rune_logging.h') diff --git a/include/rune_logging.h b/include/rune_logging.h new file mode 100644 index 0000000..a0b9e29 --- /dev/null +++ b/include/rune_logging.h @@ -0,0 +1,16 @@ +#ifndef RUNE_LOGGING_H +#define RUNE_LOGGING_H + +#include + +enum log_level { + LOG_FATAL, + LOG_ERROR, + LOG_WARN, + LOG_INFO, + LOG_DEBUG +}; + +void log_output(int level, const char *fmt, ...); + +#endif -- cgit v1.2.3