From 902703efa9425a0630053c10229de911e23a2a43 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 1 Aug 2016 03:43:23 -0400 Subject: Show colorized log output in messages window --- src/Log.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/Log.cpp') diff --git a/src/Log.cpp b/src/Log.cpp index b2d30b7d..46b88aec 100644 --- a/src/Log.cpp +++ b/src/Log.cpp @@ -98,7 +98,11 @@ int Log::vtprintf(LV2_URID type, const char* fmt, va_list args) { int ret = 0; - if (_log) { + if (type == _uris.log_Trace && !_trace) { + return 0; + } else if (_sink) { + ret = _sink(type, fmt, args); + } else if (_log) { ret = _log->vprintf(_log->handle, type, fmt, args); } else if (type == _uris.log_Error) { ColorContext ctx(stderr, ColorContext::Color::RED); -- cgit v1.2.1