Commit 8106ceb3 by 李定达

1.修复日志重新打印bug

parent bc2e9cbb
......@@ -70,7 +70,7 @@ void Control::Start(const char *indata, char *outdata)
//QDir::setCurrent(appPath);
QLOG_INFO() << "Openssl support:" << QSslSocket::supportsSsl();
qDebug() << "Openssl support:" << QSslSocket::supportsSsl() << QApplication::libraryPaths();
QLOG_INFO() << "Openssl support:" << QSslSocket::supportsSsl() << QApplication::libraryPaths();
QEventLoop loop;
if(_widget == NULL)
......
......@@ -62,13 +62,13 @@ extern "C" __declspec(dllexport) void Start(const char *indata, char *outdata)
QString str = QString(path) + "\\log\\sbuxpay.txt";
/* 配置输出定向器 */
QsLogging::DestinationPtr fileDestination(QsLogging::DestinationFactory::MakeFileDestination(
static QsLogging::DestinationPtr fileDestination(QsLogging::DestinationFactory::MakeFileDestination(
str,
QsLogging::EnableLogRotation, QsLogging::MaxSizeBytes(1024*1024),
QsLogging::MaxOldLogCount(5)));
logger.addDestination(fileDestination);
QsLogging::DestinationPtr consleDest(QsLogging::DestinationFactory::MakeDebugOutputDestination());
static QsLogging::DestinationPtr consleDest(QsLogging::DestinationFactory::MakeDebugOutputDestination());
logger.addDestination(consleDest);
// QByteArray rollback;
......
<?xml version="1.0" encoding="UTF-8"?>
<!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>
<data>
<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