summaryrefslogtreecommitdiff
path: root/src/debug/Log.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/Log.hpp')
-rw-r--r--src/debug/Log.hpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debug/Log.hpp b/src/debug/Log.hpp
index d3190d4f..9696aa90 100644
--- a/src/debug/Log.hpp
+++ b/src/debug/Log.hpp
@@ -11,7 +11,7 @@
#define LOGMESSAGESIZE 1024
#define ROLLING_LOG_SIZE 4096
-enum LogLevel {
+enum eLogLevel : int8_t {
NONE = -1,
LOG = 0,
WARN,
@@ -21,6 +21,7 @@ enum LogLevel {
TRACE
};
+// NOLINTNEXTLINE(readability-identifier-naming)
namespace Debug {
inline std::string logFile;
inline std::ofstream logOfs;
@@ -38,10 +39,11 @@ namespace Debug {
void close();
//
- void log(LogLevel level, std::string str);
+ void log(eLogLevel level, std::string str);
template <typename... Args>
- void log(LogLevel level, std::format_string<Args...> fmt, Args&&... args) {
+ //NOLINTNEXTLINE
+ void log(eLogLevel level, std::format_string<Args...> fmt, Args&&... args) {
std::lock_guard<std::mutex> guard(logMutex);
if (level == TRACE && !trace)