summaryrefslogtreecommitdiff
path: root/cpp/src/IcePack/TraceLevels.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/IcePack/TraceLevels.cpp')
-rw-r--r--cpp/src/IcePack/TraceLevels.cpp34
1 files changed, 34 insertions, 0 deletions
diff --git a/cpp/src/IcePack/TraceLevels.cpp b/cpp/src/IcePack/TraceLevels.cpp
new file mode 100644
index 00000000000..35f03f1ee7c
--- /dev/null
+++ b/cpp/src/IcePack/TraceLevels.cpp
@@ -0,0 +1,34 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// Mutable Realms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#include <Ice/Properties.h>
+#include <IcePack/TraceLevels.h>
+
+using namespace std;
+using namespace IcePack;
+
+TraceLevels::TraceLevels(const Ice::PropertiesPtr& properties, const Ice::LoggerPtr& theLogger) :
+ serverMgr(0),
+ serverMgrCat("ServerManager"),
+ adapterMgr(0),
+ adapterMgrCat("AdapterManager"),
+ activator(0),
+ activatorCat("Activator"),
+ logger(theLogger)
+{
+ const string keyBase = "IcePack.Trace.";
+ const_cast<int&>(serverMgr) = properties->getPropertyAsInt(keyBase + serverMgrCat);
+ const_cast<int&>(adapterMgr) = properties->getPropertyAsInt(keyBase + adapterMgrCat);
+ const_cast<int&>(activator) = properties->getPropertyAsInt(keyBase + activatorCat);
+}
+
+TraceLevels::~TraceLevels()
+{
+}