diff options
author | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2008-06-06 11:39:41 +0200 |
commit | 966061fcb0e2ec4d5d7ed9c6c280eefb27209da7 (patch) | |
tree | 078246631fb864d9e908108d69917b18c6303c16 /cppe/src/IceE/LoggerUtil.cpp | |
parent | Removed SL code (diff) | |
download | ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.bz2 ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.tar.xz ice-966061fcb0e2ec4d5d7ed9c6c280eefb27209da7.zip |
Removed Ice-E
Diffstat (limited to 'cppe/src/IceE/LoggerUtil.cpp')
-rw-r--r-- | cppe/src/IceE/LoggerUtil.cpp | 120 |
1 files changed, 0 insertions, 120 deletions
diff --git a/cppe/src/IceE/LoggerUtil.cpp b/cppe/src/IceE/LoggerUtil.cpp deleted file mode 100644 index b0db6828da5..00000000000 --- a/cppe/src/IceE/LoggerUtil.cpp +++ /dev/null @@ -1,120 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved. -// -// This copy of Ice-E is licensed to you under the terms described in the -// ICEE_LICENSE file included in this distribution. -// -// ********************************************************************** - -#include <IceE/LoggerUtil.h> -#include <IceE/Logger.h> - -using namespace std; -using namespace Ice; -using namespace IceInternal; - -Ice::Print::Print(const LoggerPtr& logger) : - _logger(logger) -{ -} - -Ice::Print::~Print() -{ - flush(); -} - -void -Ice::Print::flush() -{ - if(!_str.empty()) - { - _logger->print(_str); - } - _str = "";; -} - -string& -Ice::Print::__str() -{ - return _str; -} - -Ice::Warning::Warning(const LoggerPtr& logger) : - _logger(logger) -{ -} - -Ice::Warning::~Warning() -{ - flush(); -} - -void -Ice::Warning::flush() -{ - if(!_str.empty()) - { - _logger->warning(_str); - } - _str = ""; -} - -string& -Ice::Warning::__str() -{ - return _str; -} - -Ice::Error::Error(const LoggerPtr& logger) : - _logger(logger) -{ -} - -Ice::Error::~Error() -{ - flush(); -} - -void -Ice::Error::flush() -{ - if(!_str.empty()) - { - _logger->error(_str); - } - _str = ""; -} - -string& -Ice::Error::__str() -{ - return _str; -} - -Ice::Trace::Trace(const LoggerPtr& logger, const string& category) : - _logger(logger), - _category(category) -{ -} - -Ice::Trace::~Trace() -{ - flush(); -} - -void -Ice::Trace::flush() -{ - if(!_str.empty()) - { - _logger->trace(_category, _str); - } - _str = ""; -} - -string& -Ice::Trace::__str() -{ - return _str; -} |