From 245da4de0625f9eb61ac7ee53a7a8a2a42266ee0 Mon Sep 17 00:00:00 2001
From: atraczyk <andreastraczyk@gmail.com>
Date: Fri, 9 Dec 2016 18:24:49 -0500
Subject: [PATCH] logger: emits a DebugSignal during debug print

- used by the UWP client to log the daemon's debug output
  to a file/XAML/Visual Studio debug console

Change-Id: I592c7e13c33753ebaf3824b59db4e24a4784b8a1
Tuleap: #790
---
 src/logger.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/logger.cpp b/src/logger.cpp
index a332256245..a44ed0ddff 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -26,6 +26,8 @@
 #include <time.h>
 #include <ciso646> // fix windows compiler bug
 
+#include "client/ring_signal.h"
+
 #ifdef RING_UWP
 #include <sys_time.h>
 #else
@@ -212,6 +214,7 @@ vlogger(const int level, const char *format, va_list ap)
 #ifdef RING_UWP
             char tmp[2048];
             vsprintf(tmp, format, ap);
+            ring::emitSignal<DRing::DebugSignal::MessageSend>(getHeader(ctx.c_str()).c_str() + std::string(tmp));
 #endif
 #ifndef _WIN32
             fputs(END_COLOR, stderr);
-- 
GitLab