diff options
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: |