Update log.hpp

This commit is contained in:
tobid7 2021-07-25 18:34:47 +02:00 committed by GitHub
parent 43ea66236c
commit c733394277
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,13 +17,14 @@ class Log
/// \param filename name for the file /// \param filename name for the file
void Init(const char *filename); void Init(const char *filename);
/// Write Text to logfile /// Write Text to logfile
/// debug_text: your text /// \param debug_text your text
void Write(std::string debug_text); void Write(std::string debug_text);
/// Get the date /// Get the date
std::string logDate(void); std::string logDate(void);
/// Format to logstyle /// Format to logstyle
/// fmt_str: the formatted style /// \param fmt_str the formatted style
std::string format(const std::string& fmt_str, ...); std::string format(const std::string& fmt_str, ...);
private: private:
/// param filename the name of the logfile
std::string filename; std::string filename;
}; };