summaryrefslogtreecommitdiff
path: root/src/logger.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-17 22:40:07 +0500
committerilotterytea <iltsu@alright.party>2024-05-17 22:40:07 +0500
commit62a6b100196e2a3c596b954691d20faa534dc523 (patch)
tree0374f1fe07a4efe7188350289438a7b8bcc40b70 /src/logger.hpp
parent4ebfa4f82679b5edafca70b2da1646d5d1b2decc (diff)
feat: logger
Diffstat (limited to 'src/logger.hpp')
-rw-r--r--src/logger.hpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logger.hpp b/src/logger.hpp
new file mode 100644
index 0000000..91b4757
--- /dev/null
+++ b/src/logger.hpp
@@ -0,0 +1,16 @@
+#pragma once
+
+#include <string>
+
+namespace bot::log {
+ enum LogLevel { INFO, DEBUG, WARN, ERROR };
+
+ void log(const LogLevel &level, const std::string &source,
+ const std::string &message);
+
+ // just shorthands
+ void info(const std::string &source, const std::string &message);
+ void debug(const std::string &source, const std::string &message);
+ void warn(const std::string &source, const std::string &message);
+ void error(const std::string &source, const std::string &message);
+}