Add files via upload

This commit is contained in:
Tobi
2021-04-03 06:02:25 +02:00
committed by GitHub
parent a719b586fc
commit 1f36fa9599
6 changed files with 948 additions and 0 deletions

19
log.hpp Normal file
View File

@@ -0,0 +1,19 @@
#include <fstream>
#include <stdarg.h>
#include <string>
#include <time.h>
#include <unistd.h>
class Log
{
public:
Log();
~Log();
void Init(const char *filename);
void Write(std::string debug_text);
std::string logDate(void);
std::string format(const std::string& fmt_str, ...);
private:
std::string filename;
};