logfile rotating implemented

This commit is contained in:
Jurij Retzlaff
2020-11-08 11:23:22 +01:00
parent 05a0f6fa62
commit acc7253ca1
13 changed files with 241 additions and 60 deletions

View File

@@ -280,6 +280,10 @@ bool ClassFlowControll::ReadParameter(FILE* pfile, string& aktparamgraph)
{
LogFile.SwitchOnOff(false);
}
}
if ((toUpper(zerlegt[0]) == "LOGFILERETENTIONINDAYS") && (zerlegt.size() > 1))
{
LogFile.SetRetention(std::stoi(zerlegt[1]));
}
}
return true;

View File

@@ -4,8 +4,6 @@
#include <string>
static const char* TAG2 = "example";
#define BLINK_GPIO GPIO_NUM_4
#define CAMERA_MODEL_AI_THINKER