summaryrefslogtreecommitdiff
path: root/inc/logger.h
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-03-05 14:20:15 -0500
committerbd <bdunahu@operationnull.com>2025-03-05 14:20:15 -0500
commite296a3a6ab782cb80b7091324b41bb78db6d3906 (patch)
treeaf137790ab40290d1cc4e83f3261370c591512bc /inc/logger.h
parentdb158de830e4fd4ab20ef5d357e24147c7a9281d (diff)
whitespace
Diffstat (limited to 'inc/logger.h')
-rw-r--r--inc/logger.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/inc/logger.h b/inc/logger.h
index 005e518..7ab3051 100644
--- a/inc/logger.h
+++ b/inc/logger.h
@@ -9,32 +9,32 @@ 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();
+ /**
+ * 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 &);
+ /**
+ * 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:
- LogLevel level = INFO;
- ofstream logFile;
- string levelToString(LogLevel);
- int levelToInt(LogLevel);
+ LogLevel level = INFO;
+ ofstream logFile;
+ string levelToString(LogLevel);
+ int levelToInt(LogLevel);
};
#endif /* LOGGER_H_INCLUDED */