Commit 8106ceb3 by 李定达

1.修复日志重新打印bug

parent bc2e9cbb
...@@ -70,7 +70,7 @@ void Control::Start(const char *indata, char *outdata) ...@@ -70,7 +70,7 @@ void Control::Start(const char *indata, char *outdata)
//QDir::setCurrent(appPath); //QDir::setCurrent(appPath);
QLOG_INFO() << "Openssl support:" << QSslSocket::supportsSsl(); QLOG_INFO() << "Openssl support:" << QSslSocket::supportsSsl();
qDebug() << "Openssl support:" << QSslSocket::supportsSsl() << QApplication::libraryPaths(); QLOG_INFO() << "Openssl support:" << QSslSocket::supportsSsl() << QApplication::libraryPaths();
QEventLoop loop; QEventLoop loop;
if(_widget == NULL) if(_widget == NULL)
......
...@@ -62,13 +62,13 @@ extern "C" __declspec(dllexport) void Start(const char *indata, char *outdata) ...@@ -62,13 +62,13 @@ extern "C" __declspec(dllexport) void Start(const char *indata, char *outdata)
QString str = QString(path) + "\\log\\sbuxpay.txt"; QString str = QString(path) + "\\log\\sbuxpay.txt";
/* 配置输出定向器 */ /* 配置输出定向器 */
QsLogging::DestinationPtr fileDestination(QsLogging::DestinationFactory::MakeFileDestination( static QsLogging::DestinationPtr fileDestination(QsLogging::DestinationFactory::MakeFileDestination(
str, str,
QsLogging::EnableLogRotation, QsLogging::MaxSizeBytes(1024*1024), QsLogging::EnableLogRotation, QsLogging::MaxSizeBytes(1024*1024),
QsLogging::MaxOldLogCount(5))); QsLogging::MaxOldLogCount(5)));
logger.addDestination(fileDestination); logger.addDestination(fileDestination);
QsLogging::DestinationPtr consleDest(QsLogging::DestinationFactory::MakeDebugOutputDestination()); static QsLogging::DestinationPtr consleDest(QsLogging::DestinationFactory::MakeDebugOutputDestination());
logger.addDestination(consleDest); logger.addDestination(consleDest);
// QByteArray rollback; // QByteArray rollback;
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject> <!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.5.1, 2017-09-07T10:02:46. --> <!-- Written by QtCreator 3.5.1, 2017-09-11T10:00:19. -->
<qtcreator> <qtcreator>
<data> <data>
<variable>EnvironmentId</variable> <variable>EnvironmentId</variable>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment