mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Fix log file Dir
This commit is contained in:
@@ -109,8 +109,8 @@ void myMessageOutput(QtMsgType type,
|
|||||||
txt+= context.function ? context.function : "";
|
txt+= context.function ? context.function : "";
|
||||||
txt+=")\n";
|
txt+=")\n";
|
||||||
}
|
}
|
||||||
QFile outFile(QDir::homePath()
|
QFile outFile(QETApp::configDir()
|
||||||
+"/.qet/"
|
+"/"
|
||||||
+QDate::currentDate().toString("yyyyMMdd")
|
+QDate::currentDate().toString("yyyyMMdd")
|
||||||
+".log");
|
+".log");
|
||||||
if(outFile.open(QIODevice::WriteOnly | QIODevice::Append))
|
if(outFile.open(QIODevice::WriteOnly | QIODevice::Append))
|
||||||
@@ -129,7 +129,7 @@ void myMessageOutput(QtMsgType type,
|
|||||||
void delete_old_log_files(int days)
|
void delete_old_log_files(int days)
|
||||||
{
|
{
|
||||||
const QDate today = QDate::currentDate();
|
const QDate today = QDate::currentDate();
|
||||||
const QString path = QDir::homePath() + "/.qet/";
|
const QString path = QETApp::configDir() + "/";
|
||||||
|
|
||||||
QString filter("%1%1%1%1%1%1%1%1.log"); // pattern
|
QString filter("%1%1%1%1%1%1%1%1.log"); // pattern
|
||||||
filter = filter.arg("[0123456789]"); // valid characters
|
filter = filter.arg("[0123456789]"); // valid characters
|
||||||
|
|||||||
Reference in New Issue
Block a user