From 6f8ec89373e0a9e268e1b95ecbcb07d08949c894 Mon Sep 17 00:00:00 2001 From: Tobi Date: Sun, 25 Jul 2021 00:13:11 +0200 Subject: [PATCH] Update log.hpp --- log.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/log.hpp b/log.hpp index b2c30b5..93bf6d3 100644 --- a/log.hpp +++ b/log.hpp @@ -5,14 +5,24 @@ #include #include +/** Log Class */ class Log { public: + /** Construct */ Log(); + /** Deconstruct */ ~Log(); + /// Init the log file + /// filename: name for the file void Init(const char *filename); + /// Write Text to logfile + /// debug_text: your text void Write(std::string debug_text); + /// Get the date std::string logDate(void); + /// Format to logstyle + /// fmt_str: the formatted style std::string format(const std::string& fmt_str, ...); private: std::string filename;