diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:59:33 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 20:59:33 +0000 |
commit | 91c154d9ed3fa307ea5566f62b003c38cdacf2ad (patch) | |
tree | f2f334d090ff115ae0c3573455da42e1dca09c47 /src/configuration.cpp | |
parent | b58164b2ba3ea6a3f6a87db38038f69d961fda11 (diff) | |
download | mana-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.gz mana-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.bz2 mana-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.tar.xz mana-91c154d9ed3fa307ea5566f62b003c38cdacf2ad.zip |
logger...
Diffstat (limited to 'src/configuration.cpp')
-rw-r--r-- | src/configuration.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/configuration.cpp b/src/configuration.cpp index d843f793..2167aae2 100644 --- a/src/configuration.cpp +++ b/src/configuration.cpp @@ -24,6 +24,7 @@ #include "configuration.h" #include "log.h" +#include "main.h" #include <math.h> #include <iostream> @@ -49,7 +50,7 @@ void Configuration::init(std::string filename) xmlNodePtr node = xmlDocGetRootElement(doc); if (!node || !xmlStrEqual(node->name, BAD_CAST "configuration")) { - log("Warning: No configuration file (%s)", filename.c_str()); + logger.log("Warning: No configuration file (%s)", filename.c_str()); return; } @@ -87,7 +88,7 @@ bool Configuration::write(std::string filename) for (iter = options.begin(); iter != options.end(); iter++) { - log("Configuration::write(%s, \"%s\")", + logger.log("Configuration::write(%s, \"%s\")", iter->first.c_str(), iter->second.c_str()); xmlTextWriterStartElement(writer, BAD_CAST "option"); |