aboutsummaryrefslogtreecommitdiffstats
path: root/src/Utilities/Logger.hpp
diff options
context:
space:
mode:
authorNiklas Halle <niklas@niklashalle.net>2020-08-23 12:41:55 +0200
committerNiklas Halle <niklas@niklashalle.net>2020-08-23 12:43:23 +0200
commit3314a53d0cf0a135fe6f82fcc7b6f4df84f70436 (patch)
treec17358c94c6211ba5408935a170a7d66f9c83bb4 /src/Utilities/Logger.hpp
parent70d5a9cf40546e0013a4761a2b0060963a21b13c (diff)
downloadn_core-3314a53d0cf0a135fe6f82fcc7b6f4df84f70436.tar.gz
n_core-3314a53d0cf0a135fe6f82fcc7b6f4df84f70436.zip
clean start, clean CMakeLists.txt
Diffstat (limited to 'src/Utilities/Logger.hpp')
-rw-r--r--src/Utilities/Logger.hpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/Utilities/Logger.hpp b/src/Utilities/Logger.hpp
deleted file mode 100644
index f319d93..0000000
--- a/src/Utilities/Logger.hpp
+++ /dev/null
@@ -1,38 +0,0 @@
-#pragma once
-
-#include <string>
-#include <iostream>
-
-
-#include "Utilities.hpp"
-
-using std::string;
-using std::cout;
-using std::endl;
-
-#define logWarn(x) Logger::Log(x, Logger::LogLevel::lWARN)
-#define logDebug(x) Logger::Log(x, Logger::LogLevel::lDEBUG)
-#define logError(x) Logger::Log(x, Logger::LogLevel::lERROR)
-
-#define logStatus(x) Logger::Log(x, Logger::LogLevel::lSTATUS)
-
-#define log(x) logI(x)
-#define logI(x) Logger::Log(x, Logger::LogLevel::lINFO)
-
-class Logger {
-public:
- enum class LogLevel {
- lSTATUS, // general bot status messages, everything it logs o it's own
- lDEBUG, // messages logged for development purposes
- lINFO, // messages logged on certain events (eg. command executed)
- lWARN,
- lERROR
- };
-
- static void Log(const string& msg, LogLevel logLevel);
- //static void Log(const TelegramMessage& message, LogLevel logLevel);
-
-private:
- static void Print(const string& msg);
-};
-