summaryrefslogtreecommitdiff
path: root/src/logging/logging.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-06-14 00:05:58 -0500
committersanine <sanine.not@pm.me>2022-06-14 00:05:58 -0500
commit034d5c965ff34cfdf4b153af9f32360a02e35684 (patch)
treefcbe5ca527d76a303c197ea8308c6e488ef7c0b4 /src/logging/logging.h
parent8fb7916a0d0cb007a4c3a4e6a31af58765268ca3 (diff)
scorched earth, start over
Diffstat (limited to 'src/logging/logging.h')
-rw-r--r--src/logging/logging.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/logging/logging.h b/src/logging/logging.h
deleted file mode 100644
index c8a5864..0000000
--- a/src/logging/logging.h
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef HONEY_LOGGING_H
-#define HONEY_LOGGING_H
-
-#include <stdio.h>
-
-enum honey_log_level_t
- { FATAL, ERROR, WARN, INFO, DEBUG };
-
-struct honey_log_info_t {
- enum honey_log_level_t log_level;
- FILE *log_file;
-};
-
-extern struct honey_log_info_t honey_log_info;
-
-const char * honey_log_level_str();
-
-
-void honey_log_set_level(enum honey_log_level_t level);
-enum honey_log_level_t honey_log_get_level();
-
-void honey_log_set_file(FILE *file);
-FILE * honey_log_get_file();
-
-void honey_log(enum honey_log_level_t required_level,
- const char *prefix,
- const char *fmt, ...);
-
-#define honey_debug(...) honey_log(DEBUG, "[DEBUG]", __VA_ARGS__)
-#define honey_info(...) honey_log(INFO, "[INFO]", __VA_ARGS__)
-#define honey_warn(...) honey_log(WARN, "[WARN]", __VA_ARGS__)
-#define honey_error(...) honey_log(ERROR, "[ERROR]", __VA_ARGS__)
-#define honey_fatal(...) honey_log(FATAL, "[FATAL]", __VA_ARGS__)
-
-#endif