diff options
author | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-03-10 15:11:15 +0100 |
---|---|---|
committer | Daniel M. Pelt <D.M.Pelt@cwi.nl> | 2015-03-10 15:11:15 +0100 |
commit | 150951875c236f95a64fd132c26576bd19daca80 (patch) | |
tree | ecafe5eed21bc15e577be9cb16702d1e03d31162 /src/Config.cpp | |
parent | 535564ccd8b9563fb52be0dff247b99495942f51 (diff) | |
download | astra-150951875c236f95a64fd132c26576bd19daca80.tar.gz astra-150951875c236f95a64fd132c26576bd19daca80.tar.bz2 astra-150951875c236f95a64fd132c26576bd19daca80.tar.xz astra-150951875c236f95a64fd132c26576bd19daca80.zip |
Use new logging API internally instead of printf / iostream
Diffstat (limited to 'src/Config.cpp')
-rw-r--r-- | src/Config.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Config.cpp b/src/Config.cpp index 653935e..0a85b3c 100644 --- a/src/Config.cpp +++ b/src/Config.cpp @@ -37,6 +37,9 @@ $Id$ #include "astra/Projector2D.h" #include "astra/Projector3D.h" +#include "astra/Logging.h" +#include <sstream> + using namespace astra; using namespace std; @@ -144,7 +147,9 @@ bool ConfigStackCheck<T>::stopParsing() nodes.clear(); if (!errors.empty()) { - cout << "Warning: " << name << ": unused configuration options: " << errors << std::endl; + ostringstream os; + os << "Warning: " << name << ": unused configuration options: " << errors; + astra::CLogger::warn(__FILE__,__LINE__,os.str().c_str()); return false; } |