new method PILog::readAllLogs

This commit is contained in:
2024-11-18 22:47:02 +03:00
parent c9a5ddd89f
commit 24112498ce
3 changed files with 59 additions and 3 deletions

View File

@@ -144,6 +144,10 @@ public:
//! \~russian Записывает все строки из очереди и останавливается. Также вызывается в деструкторе.
void stop();
//! \~english Read all previous and current log content and returns them as %PIStringList.
//! \~russian Читает все предыдущие и текущий логи и возвращает их как %PIStringList.
PIStringList readAllLogs() const;
private:
EVENT_HANDLER2(void, coutDone, int, id, PIString *, buff);
@@ -160,8 +164,8 @@ private:
void newFile();
void run() override;
PIMutex log_mutex;
PIFile log_file;
mutable PIMutex log_mutex;
mutable PIFile log_file;
PIIOTextStream log_ts;
PITimeMeasurer split_tm;
PISystemTime split_time;