Commit 245da4de authored by atraczyk's avatar atraczyk Committed by gerrit2

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
parent df7b35aa
......@@ -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);
......
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