summaryrefslogtreecommitdiff
path: root/cpp/include/Ice/LoggerUtil.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/include/Ice/LoggerUtil.h')
-rw-r--r--cpp/include/Ice/LoggerUtil.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/cpp/include/Ice/LoggerUtil.h b/cpp/include/Ice/LoggerUtil.h
index 5f33ca0b466..8028e10aece 100644
--- a/cpp/include/Ice/LoggerUtil.h
+++ b/cpp/include/Ice/LoggerUtil.h
@@ -11,6 +11,8 @@
#define ICE_LOGGER_UTIL_H
#include <Ice/LoggerF.h>
+#include <Ice/CommunicatorF.h>
+#include <Ice/Plugin.h>
namespace Ice
{
@@ -147,6 +149,22 @@ template<class Y>
ICE_API Trace& operator<<(Trace&, std::ios_base& (*)(std::ios_base&));
+//
+// A special plugin that sets logger during construction (when the provided logger is not
+// null). Both initialize and destroy are no-op. See Ice::InitializationData.
+//
+
+class ICE_API IceLoggerPlugin : public Ice::Plugin
+{
+public:
+
+ IceLoggerPlugin(const CommunicatorPtr& communicator, const LoggerPtr&);
+
+ virtual void initialize();
+
+ virtual void destroy();
+};
+
}
#endif