From 0c9e861caa8b1eed5068942edc35d5f91bac816e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 10 May 2012 06:24:07 +0000 Subject: Work towards translatable strings and a cleaner log interface. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/App.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/App.cpp') diff --git a/src/gui/App.cpp b/src/gui/App.cpp index c4c9cfe6..3b3fa6f9 100644 --- a/src/gui/App.cpp +++ b/src/gui/App.cpp @@ -47,7 +47,7 @@ #include "WidgetFactory.hpp" #include "WindowFactory.hpp" -#define LOG(s) s << "[GUI] " +#define LOG(s) (s("[GUI] ")) using namespace std; using namespace Raul; @@ -149,7 +149,7 @@ App::run() break; _main->run(); - LOG(info) << "Exiting" << endl; + LOG(info)("Exiting\n"); } void @@ -226,7 +226,7 @@ App::property_change(const Raul::URI& subject, { if (subject == uris().ingen_engine && key == uris().ingen_sampleRate) { if (value.type() == forge().Int) { - LOG(info) << "Sample rate: " << uris().forge.str(value) << std::endl; + LOG(info)(Raul::fmt("Sample rate: %1%\n") % uris().forge.str(value)); _sample_rate = value.get_int32(); } else { error << "Engine sample rate property is not an integer" << std::endl; -- cgit v1.2.1