mirror of
https://github.com/jie65535/DaemonService.git
synced 2024-07-27 19:04:56 +08:00
update
增加手动移出白名单 连续连接移出白名单
This commit is contained in:
14
log.cpp
Normal file
14
log.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#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);
|
||||
}
|
||||
Reference in New Issue
Block a user