Skip to content
Snippets Groups Projects
Commit 245da4de authored by Andreas Traczyk's avatar Andreas Traczyk Committed by gerrit2
Browse files

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
Branches
Tags
No related merge requests found
...@@ -26,6 +26,8 @@ ...@@ -26,6 +26,8 @@
#include <time.h> #include <time.h>
#include <ciso646> // fix windows compiler bug #include <ciso646> // fix windows compiler bug
#include "client/ring_signal.h"
#ifdef RING_UWP #ifdef RING_UWP
#include <sys_time.h> #include <sys_time.h>
#else #else
...@@ -212,6 +214,7 @@ vlogger(const int level, const char *format, va_list ap) ...@@ -212,6 +214,7 @@ vlogger(const int level, const char *format, va_list ap)
#ifdef RING_UWP #ifdef RING_UWP
char tmp[2048]; char tmp[2048];
vsprintf(tmp, format, ap); vsprintf(tmp, format, ap);
ring::emitSignal<DRing::DebugSignal::MessageSend>(getHeader(ctx.c_str()).c_str() + std::string(tmp));
#endif #endif
#ifndef _WIN32 #ifndef _WIN32
fputs(END_COLOR, stderr); fputs(END_COLOR, stderr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment