it was colliding with math log, renamed to applog

This commit is contained in:
2025-12-28 13:40:01 +01:00
parent 14b03f45f4
commit d873837660
8 changed files with 33 additions and 34 deletions

View File

@@ -2,11 +2,11 @@
#define LOG_HPP
// comment out to disable logging in general
#define log(level, fmt, ...) _log(level, std::source_location::current(), fmt, ##__VA_ARGS__)
#define applog(level, fmt, ...) _log(level, std::source_location::current(), fmt, ##__VA_ARGS__)
// comment out to disable logging to file
// #define LOG_FILE_LOCATION "linuxSmartie.log.gz"
#ifdef log
#ifdef applog
#include <chrono>
#include <mutex>
@@ -83,7 +83,7 @@ inline void _log(LOG level, const std::source_location& loc, std::format_string<
#else
#define log(...)
#define applog(...)
#endif