summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/LoggerUtil.h
diff options
context:
space:
mode:
authorMarc Laukien <marc@zeroc.com>2005-01-27 21:22:48 +0000
committerMarc Laukien <marc@zeroc.com>2005-01-27 21:22:48 +0000
commit1decea8e7dcbf1c7836d27401d63229c49191556 (patch)
treed4bd9e931ea34841bc194b711f77f9cec4a499b3 /cpp/include/Ice/LoggerUtil.h
parentbug fix for thread per connection (diff)
downloadice-1decea8e7dcbf1c7836d27401d63229c49191556.tar.bz2
ice-1decea8e7dcbf1c7836d27401d63229c49191556.tar.xz
ice-1decea8e7dcbf1c7836d27401d63229c49191556.zip
icepatch2 changes
Diffstat (limited to 'cpp/include/Ice/LoggerUtil.h')
-rw-r--r--cpp/include/Ice/LoggerUtil.h27
1 files changed, 27 insertions, 0 deletions
diff --git a/cpp/include/Ice/LoggerUtil.h b/cpp/include/Ice/LoggerUtil.h
index 2b1c2c42ec1..9cbecdabe8c 100644
--- a/cpp/include/Ice/LoggerUtil.h
+++ b/cpp/include/Ice/LoggerUtil.h
@@ -15,6 +15,33 @@
namespace Ice
{
+class ICE_API Print : public IceUtil::noncopyable
+{
+public:
+
+ Print(const LoggerPtr&);
+ ~Print();
+
+ void flush();
+
+ std::ostringstream& __str(); // For internal use only. Don't use in your code.
+
+private:
+
+ LoggerPtr _logger;
+ std::ostringstream _str;
+};
+
+template<typename T>
+inline Print&
+operator<<(Print& out, const T& val)
+{
+ out.__str() << val;
+ return out;
+}
+
+ICE_API Print& operator<<(Print&, std::ios_base& (*)(std::ios_base&));
+
class ICE_API Warning : public IceUtil::noncopyable
{
public: