compatibitly mit esp-idf pure

This commit is contained in:
jomjol
2020-11-20 19:34:55 +01:00
parent 1cba7d3e1d
commit 1a0feb4f19
308 changed files with 4163 additions and 4382 deletions

View File

@@ -0,0 +1,23 @@
#include <string>
class ClassLogFile
{
private:
std::string logroot;
std::string logfile;
bool doLogFile;
unsigned short retentionInDays;
public:
ClassLogFile(std::string _logpath, std::string _logfile);
void SwitchOnOff(bool _doLogFile);
void SetRetention(unsigned short _retentionInDays);
void WriteToFile(std::string info, bool _time = true);
void WriteToDedicatedFile(std::string _fn, std::string info, bool _time = true);
void RemoveOld();
};
extern ClassLogFile LogFile;