aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2025-08-23 00:01:31 +0200
committerFederico Angelilli <code@fedang.net>2025-08-23 00:01:31 +0200
commita262dc8acd581052ee6b5d5430af69148540a843 (patch)
treec6eafa7d46f717fdf22eb5565d62e82d80de5fe1 /src/log.c
parentefdf4a4883937c8a2fad278fbd4ffc207ef981dc (diff)
Move to luajit and fix logsrefactor
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/log.c b/src/log.c
deleted file mode 100644
index b41c0ab..0000000
--- a/src/log.c
+++ /dev/null
@@ -1,37 +0,0 @@
-#ifdef _RELEASE
-
-#define ANY_LOG_FORMAT_BEFORE(stream, level, context, module, func) \
- fprintf(stream, "[%s%s%s%s%s%s%s] %s%s%s: ", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_CONTEXT), context, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *context ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_MODULE), *func ? func : module, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), \
- ANY_LOG_COLOR_GET(level), any_log_level_strings[level], ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET))
-
-#define ANY_LOG_VALUE_BEFORE(stream, level, context, module, func, message) \
- fprintf(stream, "[%s%s%s%s%s%s%s] %s%s%s: %s [", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_CONTEXT), context, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *context ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_MODULE), *func ? func : module, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), \
- ANY_LOG_COLOR_GET(level), any_log_level_strings[level], ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), message)
-#else
-
-#define ANY_LOG_FORMAT_BEFORE(stream, level, context, module, func) \
- fprintf(stream, "[%s%s%s%s%s%s%s%s%s%s%s] %s%s%s: ", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_CONTEXT), context, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *context ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_MODULE), module, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *func ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_FUNC), func, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), \
- ANY_LOG_COLOR_GET(level), any_log_level_strings[level], ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET))
-
-#define ANY_LOG_VALUE_BEFORE(stream, level, context, module, func, message) \
- fprintf(stream, "[%s%s%s%s%s%s%s%s%s%s%s] %s%s%s: %s [", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_CONTEXT), context, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *context ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_MODULE), module, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), *func ? " " : "", \
- ANY_LOG_COLOR_GET(ANY_LOG_COLOR_FUNC), func, ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), \
- ANY_LOG_COLOR_GET(level), any_log_level_strings[level], ANY_LOG_COLOR_GET(ANY_LOG_COLOR_RESET), message)
-#endif
-
-#define ANY_LOG_VALUE_STRING(stream, key, value) \
- fprintf(stream, "%s=\"%s\"", key, value ? value : "(null)")
-
-#define ANY_LOG_COLOR_CONTEXT_DEFAULT "\x1b[34m"
-
-#define ANY_LOG_IMPLEMENT
-#include "log.h"