diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2007-01-04 16:36:09 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2007-01-04 16:36:09 +0000 |
commit | 22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c (patch) | |
tree | d18c790a8e35de14015ddd7b14c49bcb19c28b5b /cpp/src/Ice/PropertiesI.cpp | |
parent | Fixed bug 1647 (diff) | |
download | ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.tar.bz2 ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.tar.xz ice-22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c.zip |
Added process logger
Diffstat (limited to 'cpp/src/Ice/PropertiesI.cpp')
-rw-r--r-- | cpp/src/Ice/PropertiesI.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/Ice/PropertiesI.cpp b/cpp/src/Ice/PropertiesI.cpp index e160fe6cf8f..dc487794700 100644 --- a/cpp/src/Ice/PropertiesI.cpp +++ b/cpp/src/Ice/PropertiesI.cpp @@ -13,6 +13,7 @@ #include <Ice/Initialize.h> #include <Ice/LocalException.h> #include <Ice/PropertyNames.h> +#include <Ice/Logger.h> #include <fstream> using namespace std; @@ -102,10 +103,9 @@ Ice::PropertiesI::setProperty(const string& key, const string& value) } // - // Check if the property is legal. (We write to cerr instead of - // using a logger because no logger may be established at the time - // the property is parsed.) + // Check if the property is legal. // + LoggerPtr logger = getProcessLogger(); string::size_type dotPos = key.find('.'); if(dotPos != string::npos) { @@ -128,7 +128,7 @@ Ice::PropertiesI::setProperty(const string& key, const string& value) } if(!found) { - cerr << "warning: unknown property: " << key << endl; + logger->warning("unknown property: " + key); } } } |