22 qDebug(log) << Q_FUNC_INFO;
23 qInfo(log) <<
"FreeRDP version:" << freerdp_get_version_string()
24 <<
"revision:" << freerdp_get_build_revision();
26 static wLogCallbacks* pCbLog =
new wLogCallbacks;
27 BOOL bRet = WLog_SetLogAppenderType(WLog_GetRoot(), WLOG_APPENDER_CALLBACK);
30 memset(pCbLog, 0,
sizeof(wLogCallbacks));
31 pCbLog->message = [](
const wLogMessage* msg)->BOOL{
35 qDebug(LoggerFreeRDPTrace) << msg->TextString;
38 qDebug(LoggerFreeRDP) << msg->TextString;
41 qInfo(LoggerFreeRDP) << msg->TextString;
44 qWarning(LoggerFreeRDP) << msg->TextString;
46 qCritical(LoggerFreeRDP) << msg->TextString;
50 qCritical(LoggerFreeRDPFatal) << msg->TextString;
57 WLog_ConfigureAppender(WLog_GetLogAppender(WLog_GetRoot()),
"callbacks", pCbLog);
59 WLog_SetLogLevel(WLog_GetRoot(), WLOG_TRACE);
106 szDetails =
"- " + tr(
"FreeRDP");
108 szDetails +=
" - " + tr(
"version: ");
109 szDetails += freerdp_get_version_string();
111 szDetails +=
" - " + tr(
"Build version: ");
112 szDetails += freerdp_get_build_revision();
114 szDetails += freerdp_get_build_revision();
116#if FreeRDP_VERSION_MAJOR < 3
117 szDetails +=
" - " + tr(
"Build date: ");
118 szDetails += freerdp_get_build_date();
122 szDetails += freerdp_get_build_config();
127 szDetails += channel.GetDetails();