diff options
author | David Robillard <d@drobilla.net> | 2012-08-17 02:14:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-17 02:14:07 +0000 |
commit | 318b37d8b556add13b3f156f31c9e72eca339a16 (patch) | |
tree | ca7b881f8980a41eca77602b474f29964b5c89db /src/gui/NodeModule.cpp | |
parent | a42744e1068a8630d8034df73bb344ca21a53b32 (diff) | |
download | ingen-318b37d8b556add13b3f156f31c9e72eca339a16.tar.gz ingen-318b37d8b556add13b3f156f31c9e72eca339a16.tar.bz2 ingen-318b37d8b556add13b3f156f31c9e72eca339a16.zip |
Implement real logging system, LV2 log extension support, and purge evil/ugly/untranslatable C++ stream printing.
Remove coloured log stuff from Raul.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4717 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/NodeModule.cpp')
-rw-r--r-- | src/gui/NodeModule.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index c2305e03..89ecc4a1 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -22,12 +22,12 @@ #include "lv2/lv2plug.in/ns/ext/atom/util.h" #include "ingen/Interface.hpp" +#include "ingen/Log.hpp" #include "ingen/client/NodeModel.hpp" #include "ingen/client/PatchModel.hpp" #include "ingen/client/PluginModel.hpp" #include "ingen/client/PluginUI.hpp" #include "raul/Atom.hpp" -#include "raul/log.hpp" #include "App.hpp" #include "Configuration.hpp" @@ -220,7 +220,7 @@ NodeModule::embed_gui(bool embed) { if (embed) { if (_gui_window) { - Raul::warn << "LV2 GUI already popped up, cannot embed" << endl; + app().log().warn("LV2 GUI already popped up, cannot embed\n"); return; } @@ -239,7 +239,7 @@ NodeModule::embed_gui(bool embed) container->add(*_gui_widget); Ganv::Module::embed(container); } else { - Raul::error << "Failed to create LV2 UI" << endl; + app().log().error("Failed to create LV2 UI\n"); } if (_gui_widget) { @@ -294,7 +294,8 @@ NodeModule::delete_port_view(SharedPtr<const PortModel> model) if (p) { delete p; } else { - Raul::warn << "Failed to find port on module " << model->path() << endl; + app().log().warn(Raul::fmt("Failed to find port %1% on module %2%\n") + % model->path() % _node->path()); } } @@ -303,7 +304,7 @@ NodeModule::popup_gui() { if (_node->plugin() && _node->plugin()->type() == PluginModel::LV2) { if (_plugin_ui) { - Raul::warn << "LV2 GUI already embedded, cannot pop up" << endl; + app().log().warn("LV2 GUI already embedded, cannot pop up\n"); return false; } @@ -332,7 +333,7 @@ NodeModule::popup_gui() return true; } else { - Raul::warn << "No LV2 GUI for " << _node->path() << endl; + app().log().warn(Raul::fmt("No LV2 GUI for %1%\n") % _node->path()); } } |