diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-22 19:23:53 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-22 19:23:53 +0000 |
commit | 9a5b519d898dd6a41d601cef2189410abcafedff (patch) | |
tree | d0389319e0ba7630add9d4bda331a1b338dbaadd /cpp/src/Ice/LoggerI.cpp | |
parent | Bug 1136 (diff) | |
download | ice-9a5b519d898dd6a41d601cef2189410abcafedff.tar.bz2 ice-9a5b519d898dd6a41d601cef2189410abcafedff.tar.xz ice-9a5b519d898dd6a41d601cef2189410abcafedff.zip |
Deprecated Glacier2.AddUserToAllowCategories
Diffstat (limited to 'cpp/src/Ice/LoggerI.cpp')
-rw-r--r-- | cpp/src/Ice/LoggerI.cpp | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/cpp/src/Ice/LoggerI.cpp b/cpp/src/Ice/LoggerI.cpp index b9cb6654e73..7837e06a7af 100644 --- a/cpp/src/Ice/LoggerI.cpp +++ b/cpp/src/Ice/LoggerI.cpp @@ -17,8 +17,7 @@ using namespace IceInternal; static IceUtil::StaticMutex outputMutex = ICE_STATIC_MUTEX_INITIALIZER; -Ice::LoggerI::LoggerI(const string& prefix, bool timestamp) : - _timestamp(timestamp) +Ice::LoggerI::LoggerI(const string& prefix) { if(!prefix.empty()) { @@ -39,12 +38,7 @@ Ice::LoggerI::trace(const string& category, const string& message) { IceUtil::StaticMutex::Lock sync(outputMutex); - string s = "[ "; - if(_timestamp) - { - s += IceUtil::Time::now().toString() + " "; - } - s += _prefix; + string s = "[ " + IceUtil::Time::now().toString() + " " + _prefix; if(!category.empty()) { s += category + ": "; @@ -64,20 +58,12 @@ void Ice::LoggerI::warning(const string& message) { IceUtil::StaticMutex::Lock sync(outputMutex); - if(_timestamp) - { - cerr << IceUtil::Time::now().toString() << " "; - } - cerr << _prefix << "warning: " << message << endl; + cerr << IceUtil::Time::now().toString() << " " << _prefix << "warning: " << message << endl; } void Ice::LoggerI::error(const string& message) { IceUtil::StaticMutex::Lock sync(outputMutex); - if(_timestamp) - { - cerr << IceUtil::Time::now().toString() << " "; - } - cerr << _prefix << "error: " << message << endl; + cerr << IceUtil::Time::now().toString() << " " << _prefix << "error: " << message << endl; } |