From 22d5c2d7e762d35a0f46fe29c3aab8f7e5ae5b7c Mon Sep 17 00:00:00 2001 From: Dwayne Boone Date: Thu, 4 Jan 2007 16:36:09 +0000 Subject: Added process logger --- cpp/src/Ice/PropertiesI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cpp/src/Ice/PropertiesI.cpp') 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 #include #include +#include #include 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); } } } -- cgit v1.2.3