diff options
author | bd <bdunaisky@umass.edu> | 2025-03-06 21:28:20 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-06 21:28:20 +0000 |
commit | 0983f834b66f046c5468814fa86af3f4a3c215b6 (patch) | |
tree | af137790ab40290d1cc4e83f3261370c591512bc /inc/logger.h | |
parent | e3369aad54bce775e2951e71618eb2cbb17972f9 (diff) | |
parent | e296a3a6ab782cb80b7091324b41bb78db6d3906 (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.h | 15 |
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: |