From 5bc7d084ca129637e4782de5fc0c13be76ad27b8 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 2 Jan 2022 17:09:29 -0600 Subject: add README.md and logging --- src/logging.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/logging.h (limited to 'src/logging.h') diff --git a/src/logging.h b/src/logging.h new file mode 100644 index 0000000..53232ca --- /dev/null +++ b/src/logging.h @@ -0,0 +1,16 @@ +#ifndef ARGENT_LOGGING_H +#define ARGENT_LOGGING_H + +#define FATAL 0 +#define ERROR 1 +#define WARN 2 +#define INFO 3 +#define DEBUG 4 +#define TRACE 5 + +extern int argent_log_level; + +const char *level_string(int level); +void argent_log(int level, const char *format_string, ...); + +#endif -- cgit v1.2.1