Index: sources/storage/Logger.h =================================================================== diff -u -re159592e3a99658e661ab83fffef43322dc075f3 -r2216ac6ac7f77437a7c29ac8b4043be01bc4609e --- sources/storage/Logger.h (.../Logger.h) (revision e159592e3a99658e661ab83fffef43322dc075f3) +++ sources/storage/Logger.h (.../Logger.h) (revision 2216ac6ac7f77437a7c29ac8b4043be01bc4609e) @@ -84,6 +84,8 @@ eLogEvent, ///< Massages on the CANBus : Error is an event type eLogDatum, ///< Massages on the CANBus : Broadcast data type + eLogTrtmt, ///< Treatment Log Files + eLogType_Count, }; @@ -95,6 +97,7 @@ { LogType::eLogEvent, "log/" }, { LogType::eLogDatum, "log/" }, { LogType::eLogDebug, "service/" }, + { LogType::eLogTrtmt, Storage::Treatment_Log_Folder }, }; const QHash _logPrefix { // Will be used for the logging in the file @@ -111,6 +114,7 @@ { LogType::eLogDatum, ".dat" }, #endif { LogType::eLogDebug, ".err" }, + { LogType::eLogTrtmt, ".log" }, }; // be careful when defining these percentages @@ -120,13 +124,15 @@ // so it is 70% for Event/Datum + 15% Service + 15% free = 100% total const QHash _logTypeMaxUsageLimit { #ifdef MIXED_EVENT_DATUM - { LogType::eLogEvent, 70 }, // in days - { LogType::eLogDatum, 70 }, // in days + { LogType::eLogEvent, 70 }, // in percent + { LogType::eLogDatum, 70 }, // in percent #else - { LogType::eLogEvent, 35 }, // in days - { LogType::eLogDatum, 35 }, // in days + { LogType::eLogEvent, 35 }, // in percent + { LogType::eLogDatum, 35 }, // in percent #endif - { LogType::eLogDebug, 15 }, // in days + { LogType::eLogDebug, 15 }, // in percent + // Not Sure yet so commented out in the remove. + { LogType::eLogTrtmt, 100}, // in percent // No Remove for now }; const char *_dateFormat = "yyyy_MM_dd";