it was colliding with math log, renamed to applog
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user