From cb5e934666e128e27faa95587fbdecf01f0e324d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 6 Jan 2010 23:49:17 +0000 Subject: Do all logging output via Raul streams. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2349 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/GladeFactory.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/gui/GladeFactory.cpp') diff --git a/src/gui/GladeFactory.cpp b/src/gui/GladeFactory.cpp index 170a5cd4..41fcffc4 100644 --- a/src/gui/GladeFactory.cpp +++ b/src/gui/GladeFactory.cpp @@ -16,12 +16,13 @@ */ #include "GladeFactory.hpp" -#include #include +#include "raul/log.hpp" #include "ingen-config.h" #include "shared/runtime_paths.hpp" using namespace std; +using namespace Raul; namespace Ingen { namespace GUI { @@ -41,12 +42,12 @@ GladeFactory::find_glade_file() ifstream fs(glade_filename.c_str()); if (fs.fail()) { - cerr << "Unable to find ingen_gui.glade in " << INGEN_DATA_DIR << endl; + error << "[GladeFactory] Unable to find ingen_gui.glade in " << INGEN_DATA_DIR << endl; throw; } fs.close(); - cerr << "[GladeFactory] Loading widgets from " << glade_filename.c_str() << endl; + info << "[GladeFactory] Loading widgets from " << glade_filename.c_str() << endl; } @@ -62,7 +63,7 @@ GladeFactory::new_glade_reference(const string& toplevel_widget) else return Gnome::Glade::Xml::create(glade_filename, toplevel_widget.c_str()); } catch (const Gnome::Glade::XmlError& ex) { - cerr << ex.what() << endl; + error << "[GladeFactory] " << ex.what() << endl; throw ex; } } -- cgit v1.2.1