mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-10 13:36:54 +03:00
logfile rotating implemented
This commit is contained in:
@@ -5,15 +5,19 @@
|
||||
class ClassLogFile
|
||||
{
|
||||
private:
|
||||
std::string logroot;
|
||||
std::string logfile;
|
||||
bool doLogFile;
|
||||
unsigned short retentionInDays;
|
||||
public:
|
||||
ClassLogFile(std::string _logfile);
|
||||
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;
|
||||
Reference in New Issue
Block a user