summaryrefslogtreecommitdiff
path: root/inc/logger.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-04-12 01:38:39 +0000
committerGitHub <noreply@github.com>2025-04-12 01:38:39 +0000
commitbe2bc108dc112ae7e21d4a77f7bcbfac88d6fcd4 (patch)
tree08549aa6c7cbae114958df62f92c9e60eb5f114c /inc/logger.h
parent101f0facf8002907ca6e19faabfdcf472c0c3152 (diff)
parent1fb7a9bd5eb41e87871bcbb3423caaabdd8ce1d9 (diff)
Merge pull request #1 from bdunahu/bdunahu
First part of storage rework (see description)
Diffstat (limited to 'inc/logger.h')
-rw-r--r--inc/logger.h42
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 */