summaryrefslogtreecommitdiff
path: root/cpp/src/IceSSL/ClientContext.cpp
diff options
context:
space:
mode:
authorAnthony Neal <aneal@zeroc.com>2002-09-13 15:14:41 +0000
committerAnthony Neal <aneal@zeroc.com>2002-09-13 15:14:41 +0000
commitc21c28403985dbe438519f533dd450a6893a44f9 (patch)
tree156ebe284adb42a05f7cbbca398e25cae488af88 /cpp/src/IceSSL/ClientContext.cpp
parentChange AddUserToAllowCategories to be: (diff)
downloadice-c21c28403985dbe438519f533dd450a6893a44f9.tar.bz2
ice-c21c28403985dbe438519f533dd450a6893a44f9.tar.xz
ice-c21c28403985dbe438519f533dd450a6893a44f9.zip
Now logging uses LoggerUtil.
Diffstat (limited to 'cpp/src/IceSSL/ClientContext.cpp')
-rw-r--r--cpp/src/IceSSL/ClientContext.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/cpp/src/IceSSL/ClientContext.cpp b/cpp/src/IceSSL/ClientContext.cpp
index 0d05c03eb19..f4b8561b169 100644
--- a/cpp/src/IceSSL/ClientContext.cpp
+++ b/cpp/src/IceSSL/ClientContext.cpp
@@ -8,7 +8,7 @@
//
// **********************************************************************
-#include <Ice/Logger.h>
+#include <Ice/LoggerUtil.h>
#include <IceSSL/Exception.h>
#include <IceSSL/ClientContext.h>
@@ -29,23 +29,23 @@ IceSSL::ClientContext::configure(const GeneralConfig& generalConfig,
if(_traceLevels->security >= SECURITY_PROTOCOL)
{
- ostringstream s;
-
- s << endl;
- s << "general configuration (client)" << endl;
- s << "------------------------------" << endl;
- s << generalConfig << endl << endl;
-
- s << "certificate authority (client)" << endl;
- s << "------------------------------" << endl;
- s << "file: " << certificateAuthority.getCAFileName() << endl;
- s << "path: " << certificateAuthority.getCAPath() << endl;
-
- s << "base certificates (client)" << endl;
- s << "--------------------------" << endl;
- s << baseCertificates << endl;
-
- _logger->trace(_traceLevels->securityCat, s.str());
+ Trace out(_logger, _traceLevels->securityCat);
+
+ out << "\n";
+ out << "general configuration (client)\n";
+ out << "------------------------------\n";
+ IceSSL::operator<<(out, generalConfig);
+ out << "\n\n";
+
+ out << "certificate authority (client)\n";
+ out << "------------------------------\n";
+ out << "file: " << certificateAuthority.getCAFileName() << "\n";
+ out << "path: " << certificateAuthority.getCAPath() << "\n";
+
+ out << "base certificates (client)\n";
+ out << "--------------------------\n";
+ IceSSL::operator<<(out, baseCertificates);
+ out << "\n";
}
}