feat: Add system log.
This commit is contained in:
@@ -9,12 +9,13 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
const QString logDir = "./log";
|
||||
const QString logDir = "./log/UserOperationLog";
|
||||
}
|
||||
|
||||
void UserOperationLog::init() {
|
||||
QDir log_dir("./");
|
||||
if (!log_dir.exists(logDir)) log_dir.mkdir("log");
|
||||
if (!log_dir.exists("log")) log_dir.mkdir("log");
|
||||
if (!log_dir.exists(logDir)) log_dir.mkdir(logDir);
|
||||
currentFileName = logDir + QDate::currentDate().toString("/yyyy-MM-dd")+QString("-op.log");
|
||||
logFile.setFileName(currentFileName);
|
||||
if (logFile.exists())
|
||||
|
||||
Reference in New Issue
Block a user