diff options
author | bd <bdunahu@operationnull.com> | 2025-04-11 21:22:18 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-04-11 21:22:18 -0400 |
commit | 1fb7a9bd5eb41e87871bcbb3423caaabdd8ce1d9 (patch) | |
tree | 08549aa6c7cbae114958df62f92c9e60eb5f114c /inc/logger.h | |
parent | 101f0facf8002907ca6e19faabfdcf472c0c3152 (diff) |
First part of storage rework (see description)
- Removed response enum.
- Removed messy ostream override, and cli.cc test class
- Removed accessor enum, and instead used unique pointer to identify accessor.
- Simplified storage by removing is_waiting variables.
- Rewrote DRAM and Cache to use Storage constructor.
Diffstat (limited to 'inc/logger.h')
-rw-r--r-- | inc/logger.h | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/inc/logger.h b/inc/logger.h deleted file mode 100644 index 88f9e30..0000000 --- a/inc/logger.h +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef LOGGER_H -#define LOGGER_H -#include <fstream> -#include <sstream> -using namespace std; - -enum LogLevel { DEBUG, INFO, WARNING, ERROR, CRITICAL }; - -class Logger -{ - public: - static Logger* getInstance(); - - ~Logger() = default; - - /** - * Do not allow copies. - */ - Logger(const Logger& obj) = delete; - - /** - * Set the log level. - * @param the log level to set to. - */ - void setLevel(LogLevel); - /** - * Log a message at a certain log level. - * @param The level to log this message. If the level is lower than the - * level set by `setLevel`, then the message is not logged. - * @param The message to log. - */ - void log(LogLevel, const string &); - - private: - Logger() = default; - static Logger* logger_instance; - static LogLevel level; - static string level_to_string(LogLevel); - static int level_to_int(LogLevel); -}; - -#endif /* LOGGER_H_INCLUDED */ |