feat: Add system log.

This commit is contained in:
sunwen
2024-05-31 15:08:24 +08:00
parent e9396c3054
commit e37020d349
8 changed files with 139 additions and 10 deletions

View File

@@ -15,11 +15,11 @@
#include "event/EventCenter.h"
QString fileNameToDate(QString fileName)
{
return fileName.split("log/")[1].replace("-op.log", "");
return fileName.split("log/UserOperationLog/")[1].replace("-op.log", "");
}
QString dateToFileName(QString date)
{
return QString("./log/") + date + QString("-op.log");
return QString("./log/UserOperationLog/") + date + QString("-op.log");
}
UserOperationLogForm::UserOperationLogForm(QWidget* parent) {