diff options
author | Marc Laukien <marc@zeroc.com> | 2002-02-10 12:52:13 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-02-10 12:52:13 +0000 |
commit | 44ecadaa1264fcc3d5eb9390da499d18cf3056cf (patch) | |
tree | 83ba8979ed4866e864e5f2e95fb3cf176e2b8b58 /cpp/src/Ice/TcpConnector.cpp | |
parent | fix (diff) | |
download | ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.tar.bz2 ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.tar.xz ice-44ecadaa1264fcc3d5eb9390da499d18cf3056cf.zip |
LoggerUtil
Diffstat (limited to 'cpp/src/Ice/TcpConnector.cpp')
-rw-r--r-- | cpp/src/Ice/TcpConnector.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/cpp/src/Ice/TcpConnector.cpp b/cpp/src/Ice/TcpConnector.cpp index 1147b5268b2..c00d6789667 100644 --- a/cpp/src/Ice/TcpConnector.cpp +++ b/cpp/src/Ice/TcpConnector.cpp @@ -12,7 +12,7 @@ #include <Ice/TcpTransceiver.h> #include <Ice/Instance.h> #include <Ice/TraceLevels.h> -#include <Ice/Logger.h> +#include <Ice/LoggerUtil.h> #include <Ice/Network.h> #include <Ice/Exception.h> @@ -25,9 +25,8 @@ IceInternal::TcpConnector::connect(int timeout) { if (_traceLevels->network >= 2) { - ostringstream s; - s << "trying to establish tcp connection to " << toString(); - _logger->trace(_traceLevels->networkCat, s.str()); + Trace out(_logger, _traceLevels->networkCat); + out << "trying to establish tcp connection to " << toString(); } SOCKET fd = createSocket(false); @@ -35,9 +34,8 @@ IceInternal::TcpConnector::connect(int timeout) if (_traceLevels->network >= 1) { - ostringstream s; - s << "tcp connection established\n" << fdToString(fd); - _logger->trace(_traceLevels->networkCat, s.str()); + Trace out(_logger, _traceLevels->networkCat); + out << "tcp connection established\n" << fdToString(fd); } return new TcpTransceiver(_instance, fd); |