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 --- ingen/Log.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ingen') diff --git a/ingen/Log.hpp b/ingen/Log.hpp index a868e714..189754e2 100644 --- a/ingen/Log.hpp +++ b/ingen/Log.hpp @@ -17,6 +17,7 @@ #ifndef INGEN_LOG_HPP #define INGEN_LOG_HPP +#include #include #include @@ -33,6 +34,8 @@ class URIs; class INGEN_API Log { public: + typedef std::function Sink; + Log(LV2_Log_Log* log, URIs& uris); struct Feature : public LV2Features::Feature { @@ -60,12 +63,14 @@ public: void set_flush(bool f) { _flush = f; } void set_trace(bool f) { _trace = f; } + void set_sink(Sink s) { _sink = s; } private: void print(FILE* stream, const std::string& msg); LV2_Log_Log* _log; URIs& _uris; + Sink _sink; bool _flush; bool _trace; }; -- cgit v1.2.1