diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-17 22:40:07 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-17 22:40:07 +0500 |
| commit | 62a6b100196e2a3c596b954691d20faa534dc523 (patch) | |
| tree | 0374f1fe07a4efe7188350289438a7b8bcc40b70 /src/logger.hpp | |
| parent | 4ebfa4f82679b5edafca70b2da1646d5d1b2decc (diff) | |
feat: logger
Diffstat (limited to 'src/logger.hpp')
| -rw-r--r-- | src/logger.hpp | 16 |
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); +} |
