DaemonService/log.cpp
筱傑 6a70501baa
update
增加手动移出白名单
连续连接移出白名单
2019-01-12 10:40:27 +08:00

15 lines
361 B
C++

#include <QFile>
#include <QTextStream>
#include "log.h"
void Log::append(QString msg)
{
//保存输出相关信息到指定文件
QFile outputFile("DaemonServiceLog.txt");
outputFile.open(QIODevice::WriteOnly | QIODevice::Append);
QTextStream textStream(&outputFile);
textStream << msg << endl;
emit appendEvent(msg);
}