summaryrefslogtreecommitdiff
path: root/inc/logger.h
diff options
context:
space:
mode:
authorbd <bdunaisky@umass.edu>2025-03-06 21:28:20 +0000
committerGitHub <noreply@github.com>2025-03-06 21:28:20 +0000
commit04909d2bf353494a84bdf8d3d0e2f48ceeaa2ea0 (patch)
treeaf137790ab40290d1cc4e83f3261370c591512bc /inc/logger.h
parentb88f24b680be34b3669f33214758c76439d7b777 (diff)
parente296a3a6ab782cb80b7091324b41bb78db6d3906 (diff)
Merge pull request #13 from bdunahu/bdunahu
constructors + method declarations for cache, dram, reponse, storage
Diffstat (limited to 'inc/logger.h')
-rw-r--r--inc/logger.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/inc/logger.h b/inc/logger.h
index 5ecdc7e..7ab3051 100644
--- a/inc/logger.h
+++ b/inc/logger.h
@@ -9,10 +9,25 @@ enum LogLevel { DEBUG, INFO, WARNING, ERROR, CRITICAL };
class Logger
{
public:
+ /**
+ * Constructor.
+ * @param The file name to log to.
+ * @return A new logger object.
+ */
Logger(const string &);
~Logger();
+ /**
+ * 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: