some logger changes

This commit is contained in:
2025-04-12 22:28:16 +03:00
parent 6f3c76b005
commit 1a10f79b02
9 changed files with 110 additions and 146 deletions

13
src/logger/logger.c Normal file
View File

@@ -0,0 +1,13 @@
#include "logger.h"
#include <stdatomic.h>
_Atomic bool hiload_verbose_log = false;
void log_set_verbose(bool value) {
atomic_store_explicit(&hiload_verbose_log, value, memory_order_relaxed);
}
bool log_get_verbose() {
return atomic_load_explicit(&hiload_verbose_log, memory_order_relaxed);
}