// // Copyright (c) ZeroC, Inc. All rights reserved. // #include #include #include using namespace std; using namespace IceGrid; TraceLevels::TraceLevels(const shared_ptr& communicator, const string& prefix) : admin(), adminCat("Admin"), application(), applicationCat("Application"), node(), nodeCat("Node"), replica(), replicaCat("Replica"), server(), serverCat("Server"), adapter(), adapterCat("Adapter"), object(), objectCat("Object"), activator(), activatorCat("Activator"), locator(), locatorCat("Locator"), session(), sessionCat("Session"), discovery(), discoveryCat("Discovery"), logger(communicator->getLogger()) { auto properties = communicator->getProperties(); string keyBase = prefix + ".Trace."; const_cast(admin) = properties->getPropertyAsInt(keyBase + adminCat); const_cast(application) = properties->getPropertyAsInt(keyBase + applicationCat); const_cast(node) = properties->getPropertyAsInt(keyBase + nodeCat); const_cast(replica) = properties->getPropertyAsInt(keyBase + replicaCat); const_cast(server) = properties->getPropertyAsInt(keyBase + serverCat); const_cast(adapter) = properties->getPropertyAsInt(keyBase + adapterCat); const_cast(object) = properties->getPropertyAsInt(keyBase + objectCat); const_cast(activator) = properties->getPropertyAsInt(keyBase + activatorCat); const_cast(locator) = properties->getPropertyAsInt(keyBase + locatorCat); const_cast(session) = properties->getPropertyAsInt(keyBase + sessionCat); const_cast(discovery) = properties->getPropertyAsInt(keyBase + discoveryCat); }