Add files via upload
This commit is contained in:
19
log.hpp
Normal file
19
log.hpp
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user