From 1fb7a9bd5eb41e87871bcbb3423caaabdd8ce1d9 Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 11 Apr 2025 21:22:18 -0400 Subject: 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. --- inc/logger.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 inc/logger.h (limited to 'inc/logger.h') 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 -#include -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 */ -- cgit v1.2.3